Search
lxdream.org :: lxdream/src/xlat/x86/amd64abi.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/xlat/x86/amd64abi.h
changeset 1004:eae001858134
prev995:eb9d43e8aa08
next1065:bc1cc0c54917
author nkeynes
date Sat Apr 04 10:17:57 2009 +0000 (11 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/amd64abi.h Thu Mar 05 21:42:35 2009 +0000
1.2 +++ b/src/xlat/x86/amd64abi.h Sat Apr 04 10:17:57 2009 +0000
1.3 @@ -23,9 +23,8 @@
1.4 #define REG_RESULT1 REG_RAX
1.5 #define MAX_REG_ARG 3 /* There's more, but we don't use more than 3 here anyway */
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_immptr_rptr( base, REG_RDI );
1.14 @@ -102,7 +101,6 @@
1.15 static inline void enter_block( )
1.16 {
1.17 PUSH_r32(REG_RBP);
1.18 - MOVP_immptr_rptr( ((uint8_t *)&sh4r) + 128, REG_EBP );
1.19 SUBQ_imms_r64( 16, REG_RSP );
1.20 }
1.21
.