Search
lxdream.org :: lxdream/src/sh4/ia32abi.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/ia32abi.h
changeset 944:a4e31314bee1
prev939:6f2302afeb89
next947:aa80962d6439
author nkeynes
date Mon Jan 05 04:17:20 2009 +0000 (13 years ago)
branchlxdream-mem
permissions -rw-r--r--
last change Actually use sh4_user_address_space for user code
file annotate diff log raw
1.1 --- a/src/sh4/ia32abi.h Sat Jan 03 03:30:26 2009 +0000
1.2 +++ b/src/sh4/ia32abi.h Mon Jan 05 04:17:20 2009 +0000
1.3 @@ -26,9 +26,10 @@
1.4
1.5 static inline decode_address( int addr_reg )
1.6 {
1.7 + uintptr_t base = (sh4r.xlat_sh4_mode&SR_MD) ? (uintptr_t)sh4_address_space : (uintptr_t)sh4_user_address_space;
1.8 MOV_r32_r32( addr_reg, R_ECX );
1.9 SHR_imm8_r32( 12, R_ECX );
1.10 - MOV_r32disp32x4_r32( R_ECX, (uintptr_t)sh4_address_space, R_ECX );
1.11 + MOV_r32disp32x4_r32( R_ECX, base, R_ECX );
1.12 }
1.13
1.14 /**
.