1.1 --- a/src/sh4/sh4trans.c Thu Dec 01 01:50:44 2011 +1000
1.2 +++ b/src/sh4/sh4trans.c Thu Feb 23 08:41:07 2012 +1000
1.4 done = sh4_translate_instruction( pc );
1.5 assert( xlat_output <= eob );
1.7 - if ( pc >= lastpc ) {
1.8 + if ( pc >= lastpc && done == 0 ) {
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;