diff options
author | Blue Swirl | 2011-07-03 10:53:46 +0200 |
---|---|---|
committer | Blue Swirl | 2011-07-20 23:28:08 +0200 |
commit | b14ef7c9ab41ea824c3ccadb070ad95567cca84e (patch) | |
tree | 87d72668e2e096e80b8e60ddddd2ddd82c20a9e2 /target-sparc/cpu.h | |
parent | Avoid CPU endian memory accesses in devices (diff) | |
download | qemu-b14ef7c9ab41ea824c3ccadb070ad95567cca84e.tar.gz qemu-b14ef7c9ab41ea824c3ccadb070ad95567cca84e.tar.xz qemu-b14ef7c9ab41ea824c3ccadb070ad95567cca84e.zip |
Fix unassigned memory access handling
cea5f9a28faa528b6b1b117c9ab2d8828f473fef exposed bugs in unassigned memory
access handling. Fix them by always passing CPUState to the handlers.
Reported-by: Hervé Poussineau <hpoussin@reactos.org>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'target-sparc/cpu.h')
-rw-r--r-- | target-sparc/cpu.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target-sparc/cpu.h b/target-sparc/cpu.h index 22ee2743d7..0084b67625 100644 --- a/target-sparc/cpu.h +++ b/target-sparc/cpu.h @@ -510,8 +510,8 @@ static inline int tlb_compare_context(const SparcTLBEntry *tlb, /* cpu-exec.c */ #if !defined(CONFIG_USER_ONLY) -void do_unassigned_access(target_phys_addr_t addr, int is_write, int is_exec, - int is_asi, int size); +void cpu_unassigned_access(CPUState *env1, target_phys_addr_t addr, + int is_write, int is_exec, int is_asi, int size); target_phys_addr_t cpu_get_phys_page_nofault(CPUState *env, target_ulong addr, int mmu_idx); |