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.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.7 -static inline void decode_address( int addr_reg )
1.8 +static inline void decode_address( uintptr_t base, int addr_reg )
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.15 static inline void enter_block( )
1.18 - MOVP_immptr_rptr( ((uint8_t *)&sh4r) + 128, REG_EBP );
1.19 SUBQ_imms_r64( 16, REG_RSP );