diff options
author | Andreas Färber | 2013-09-03 13:59:37 +0200 |
---|---|---|
committer | Andreas Färber | 2014-03-13 19:52:47 +0100 |
commit | 0c591eb0a9d0593d71d7cb61f4184222ac14fdd2 (patch) | |
tree | 27fc876065b6ed65266b3615a424e6e2cafdfd30 /target-m68k/helper.c | |
parent | cputlb: Change tlb_flush() argument to CPUState (diff) | |
download | qemu-0c591eb0a9d0593d71d7cb61f4184222ac14fdd2.tar.gz qemu-0c591eb0a9d0593d71d7cb61f4184222ac14fdd2.tar.xz qemu-0c591eb0a9d0593d71d7cb61f4184222ac14fdd2.zip |
cputlb: Change tlb_set_page() argument to CPUState
Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'target-m68k/helper.c')
-rw-r--r-- | target-m68k/helper.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/target-m68k/helper.c b/target-m68k/helper.c index 276fb4bcc9..077b653f24 100644 --- a/target-m68k/helper.c +++ b/target-m68k/helper.c @@ -303,12 +303,11 @@ hwaddr m68k_cpu_get_phys_page_debug(CPUState *cs, vaddr addr) int m68k_cpu_handle_mmu_fault(CPUState *cs, vaddr address, int rw, int mmu_idx) { - M68kCPU *cpu = M68K_CPU(cs); int prot; address &= TARGET_PAGE_MASK; prot = PAGE_READ | PAGE_WRITE | PAGE_EXEC; - tlb_set_page(&cpu->env, address, address, prot, mmu_idx, TARGET_PAGE_SIZE); + tlb_set_page(cs, address, address, prot, mmu_idx, TARGET_PAGE_SIZE); return 0; } |