Search
lxdream.org :: lxdream/src/sh4/ia64abi.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/ia64abi.h
changeset 944:a4e31314bee1
prev939:6f2302afeb89
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/ia64abi.h Sat Jan 03 03:30:26 2009 +0000
1.2 +++ b/src/sh4/ia64abi.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 - load_ptr( R_EDI, sh4_address_space );
1.11 + load_ptr( R_EDI, base );
1.12 REXW(); OP(0x8B); OP(0x0C); OP(0xCF); // mov.q [%rdi + %rcx*8], %rcx
1.13 }
1.14
.