mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
cputlb: Change tlb_flush_page() argument to CPUState
Signed-off-by: Andreas Färber <afaerber@suse.de>
This commit is contained in:
parent
0063ebd6ac
commit
31b030d4ab
18 changed files with 106 additions and 70 deletions
|
@ -34,6 +34,7 @@ static unsigned int tlb_decode_size(unsigned int f)
|
|||
|
||||
static void mmu_flush_idx(CPUMBState *env, unsigned int idx)
|
||||
{
|
||||
CPUState *cs = CPU(mb_env_get_cpu(env));
|
||||
struct microblaze_mmu *mmu = &env->mmu;
|
||||
unsigned int tlb_size;
|
||||
uint32_t tlb_tag, end, t;
|
||||
|
@ -47,7 +48,7 @@ static void mmu_flush_idx(CPUMBState *env, unsigned int idx)
|
|||
end = tlb_tag + tlb_size;
|
||||
|
||||
while (tlb_tag < end) {
|
||||
tlb_flush_page(env, tlb_tag);
|
||||
tlb_flush_page(cs, tlb_tag);
|
||||
tlb_tag += TARGET_PAGE_SIZE;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue