Search
lxdream.org :: lxdream/src/sh4/ia32mac.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/ia32mac.h
changeset 569:a1c49e1e8776
prev561:533f6b478071
next570:d2893980fbf5
author nkeynes
date Fri Jan 04 11:54:17 2008 +0000 (16 years ago)
branchlxdream-mmu
permissions -rw-r--r--
last change Bring icache partially into line with the mmu, a little less slow with AT off
now.
file annotate diff log raw
1.1 --- a/src/sh4/ia32mac.h Tue Jan 01 05:08:38 2008 +0000
1.2 +++ b/src/sh4/ia32mac.h Fri Jan 04 11:54:17 2008 +0000
1.3 @@ -142,12 +142,12 @@
1.4 * Exit the block with sh4r.pc already written
1.5 * Bytes: 15
1.6 */
1.7 -void exit_block_pcset( pc )
1.8 +void exit_block_pcset( sh4addr_t pc )
1.9 {
1.10 load_imm32( R_ECX, ((pc - sh4_x86.block_start_pc)>>1)*sh4_cpu_period ); // 5
1.11 ADD_r32_sh4r( R_ECX, REG_OFFSET(slice_cycle) ); // 6
1.12 load_spreg( R_EAX, REG_OFFSET(pc) );
1.13 - call_func1(xlat_get_code,R_EAX);
1.14 + call_func1(xlat_get_code_by_vma,R_EAX);
1.15 POP_r32(R_EBP);
1.16 RET();
1.17 }
1.18 @@ -190,7 +190,7 @@
1.19 POP_r32(R_EDX);
1.20 call_func1( sh4_raise_exception, R_EDX );
1.21 load_spreg( R_EAX, REG_OFFSET(pc) );
1.22 - call_func1(xlat_get_code,R_EAX);
1.23 + call_func1(xlat_get_code_by_vma,R_EAX);
1.24 POP_r32(R_EBP);
1.25 RET();
1.26
1.27 @@ -204,7 +204,7 @@
1.28 MUL_r32( R_EDX );
1.29 ADD_r32_sh4r( R_EAX, REG_OFFSET(slice_cycle) );
1.30 load_spreg( R_EAX, REG_OFFSET(pc) );
1.31 - call_func1(xlat_get_code,R_EAX);
1.32 + call_func1(xlat_get_code_by_vma,R_EAX);
1.33 POP_r32(R_EBP);
1.34 RET();
1.35
.