1.1 --- a/src/sh4/ia32abi.h Tue Jan 15 20:50:23 2008 +0000
1.2 +++ b/src/sh4/ia32abi.h Thu Jan 17 10:17:32 2008 +0000
1.3 @@ -116,13 +116,30 @@
1.6 * Exit the block with sh4r.pc already written
1.9 void exit_block_pcset( sh4addr_t pc )
1.11 load_imm32( R_ECX, ((pc - sh4_x86.block_start_pc)>>1)*sh4_cpu_period ); // 5
1.12 ADD_r32_sh4r( R_ECX, REG_OFFSET(slice_cycle) ); // 6
1.13 - load_spreg( R_EAX, REG_OFFSET(pc) );
1.14 + load_spreg( R_EAX, R_PC );
1.15 + if( sh4_x86.tlb_on ) {
1.16 + call_func1(xlat_get_code_by_vma,R_EAX);
1.18 + call_func1(xlat_get_code,R_EAX);
1.25 + * Exit the block with sh4r.new_pc written with the target pc
1.27 +void exit_block_newpcset( sh4addr_t pc )
1.29 + load_imm32( R_ECX, ((pc - sh4_x86.block_start_pc)>>1)*sh4_cpu_period ); // 5
1.30 + ADD_r32_sh4r( R_ECX, REG_OFFSET(slice_cycle) ); // 6
1.31 + load_spreg( R_EAX, R_NEW_PC );
1.32 + store_spreg( R_EAX, R_PC );
1.33 if( sh4_x86.tlb_on ) {
1.34 call_func1(xlat_get_code_by_vma,R_EAX);