Search
lxdream.org :: lxdream/src/sh4/sh4dasm.in :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/sh4dasm.in
changeset 1190:2e66e9053037
prev1065:bc1cc0c54917
next1300:d18488c8668b
author nkeynes
date Fri Dec 02 18:14:27 2011 +1000 (8 years ago)
permissions -rw-r--r--
last change Handle calls to sh4_disasm_instruction when the memory isn't mapped
(as can happen if we try to print a translated block that's been unmapped)
file annotate diff log raw
1.1 --- a/src/sh4/sh4dasm.in Sun Jul 05 13:52:50 2009 +1000
1.2 +++ b/src/sh4/sh4dasm.in Fri Dec 02 18:14:27 2011 +1000
1.3 @@ -27,6 +27,13 @@
1.4 {
1.5 sh4addr_t addr = mmu_vma_to_phys_disasm(pc);
1.6 uint32_t tmp;
1.7 +
1.8 + if( addr == MMU_VMA_ERROR ) {
1.9 + sprintf( opcode, "?? ??" );
1.10 + snprintf( buf, len, "???" );
1.11 + return pc+2;
1.12 + }
1.13 +
1.14 uint16_t ir = ext_address_space[addr>>12]->read_word(addr);
1.15
1.16 #define UNDEF(ir) snprintf( buf, len, "???? " );
.