Search
lxdream.org :: lxdream/src/xlat/x86/ia32abi.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/xlat/x86/ia32abi.h
changeset 1004:eae001858134
prev995:eb9d43e8aa08
next1065:bc1cc0c54917
author nkeynes
date Sat Apr 04 10:17:57 2009 +0000 (13 years ago)
permissions -rw-r--r--
last change Remove last lingering bits of SH4-specific code from the ABI headers
file annotate diff log raw
1.1 --- a/src/xlat/x86/ia32abi.h Thu Mar 05 21:42:35 2009 +0000
1.2 +++ b/src/xlat/x86/ia32abi.h Sat Apr 04 10:17:57 2009 +0000
1.3 @@ -26,9 +26,8 @@
1.4 #define REG_RESULT1 REG_EAX
1.5 #define MAX_REG_ARG 2
1.6
1.7 -static inline void decode_address( int addr_reg )
1.8 +static inline void decode_address( uintptr_t base, int addr_reg )
1.9 {
1.10 - uintptr_t base = (sh4r.xlat_sh4_mode&SR_MD) ? (uintptr_t)sh4_address_space : (uintptr_t)sh4_user_address_space;
1.11 MOVL_r32_r32( addr_reg, REG_ECX );
1.12 SHRL_imm_r32( 12, REG_ECX );
1.13 MOVP_sib_rptr( 2, REG_ECX, -1, base, REG_ECX );
1.14 @@ -142,7 +141,6 @@
1.15 static inline void enter_block( )
1.16 {
1.17 PUSH_r32(REG_EBP);
1.18 - MOVP_immptr_rptr( ((uint8_t *)&sh4r) + 128, REG_EBP );
1.19 SUBL_imms_r32( 8, REG_ESP );
1.20 }
1.21
.