Fix disassembler memory accesses
commite612a1f7256bb3546cf3e9ae6cad3997c4153663
authorBlue Swirl <blauwirbel@gmail.com>
Thu, 7 May 2009 17:14:07 +0000 (7 17:14 +0000)
committerBlue Swirl <blauwirbel@gmail.com>
Thu, 7 May 2009 17:14:07 +0000 (7 17:14 +0000)
tree068052193e653b300fdb37ce41e0be62f067aa81
parent0087375ec85879b69cdb039298ac51c740f11fcb
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>
disas.c