filename | src/sh4/sh4trans.c |
changeset | 1195:072131b61d2a |
prev | 1188:1cc9bb0b3848 |
next | 1263:b3de98d19faf |
author | nkeynes |
date | Mon Feb 13 20:00:27 2012 +1000 (12 years ago) |
permissions | -rw-r--r-- |
last change | Fix MMU on non-translated platforms - reintroduce old VMA translation functions (slightly modified) - modify shadow processing to work on post-translated memory ops |
file | annotate | diff | log | raw |
1.1 --- a/src/sh4/sh4trans.c Thu Dec 01 01:50:44 2011 +10001.2 +++ b/src/sh4/sh4trans.c Mon Feb 13 20:00:27 2012 +10001.3 @@ -112,7 +112,7 @@1.4 done = sh4_translate_instruction( pc );1.5 assert( xlat_output <= eob );1.6 pc += 2;1.7 - if ( pc >= lastpc ) {1.8 + if ( pc >= lastpc && done == 0 ) {1.9 done = 2;1.10 }1.11 #ifdef SINGLESTEP1.12 @@ -140,7 +140,7 @@1.13 xlat_current_block->recover_table_offset = xlat_output - (uint8_t *)xlat_current_block->code;1.14 xlat_current_block->recover_table_size = xlat_recovery_posn;1.15 xlat_current_block->xlat_sh4_mode = sh4r.xlat_sh4_mode;1.16 - xlat_commit_block( finalsize, pc-start );1.17 + xlat_commit_block( finalsize, start, pc );1.18 return xlat_current_block->code;1.19 }
.