filename | src/sh4/sh4dasm.in |
changeset | 1190:2e66e9053037 |
prev | 1065:bc1cc0c54917 |
next | 1300:d18488c8668b |
author | nkeynes |
date | Thu Dec 22 18:10:36 2011 +1000 (12 years ago) |
permissions | -rw-r--r-- |
last change | Only build shadow "core" if translation is enabled. Guard call to sh4_translate_set_profile_blocks Fix shadow compile when building without frame-address support (although it's not going to actually work yet) |
file | annotate | diff | log | raw |
1.1 --- a/src/sh4/sh4dasm.in Sun Jul 05 13:52:50 2009 +10001.2 +++ b/src/sh4/sh4dasm.in Thu Dec 22 18:10:36 2011 +10001.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.16 #define UNDEF(ir) snprintf( buf, len, "???? " );
.