mirror of
https://github.com/xemu-project/xemu.git
synced 2025-02-02 10:12:03 +00:00
Fix disassembler memory accesses
Sparc disassembler wants to check previous addresses for some stuff and this may actually cause faults to be generated to the guest if the address is close to page start, because of the function used for the memory access. Fix by changing ldub_code to cpu_memory_rw_debug, which doesn't trigger exceptions. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
0087375ec8
commit
e612a1f725
5
disas.c
5
disas.c
@ -33,10 +33,7 @@ target_read_memory (bfd_vma memaddr,
|
|||||||
int length,
|
int length,
|
||||||
struct disassemble_info *info)
|
struct disassemble_info *info)
|
||||||
{
|
{
|
||||||
int i;
|
cpu_memory_rw_debug(cpu_single_env, memaddr, myaddr, length, 0);
|
||||||
for(i = 0; i < length; i++) {
|
|
||||||
myaddr[i] = ldub_code(memaddr + i);
|
|
||||||
}
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user