Search
lxdream.org :: lxdream/src/sh4/sh4x86.in :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/sh4x86.in
changeset 800:0d1be79c9b33
prev789:7e7ec23217fc
next824:016cda9d0518
author nkeynes
date Mon Aug 04 06:00:11 2008 +0000 (12 years ago)
permissions -rw-r--r--
last change Fix x86-64 bugs (only visible on OS X)
file annotate diff log raw
1.1 --- a/src/sh4/sh4x86.in Wed Jul 30 00:10:48 2008 +0000
1.2 +++ b/src/sh4/sh4x86.in Mon Aug 04 06:00:11 2008 +0000
1.3 @@ -166,7 +166,7 @@
1.4 /**
1.5 * Load an immediate 64-bit quantity (note: x86-64 only)
1.6 */
1.7 -static inline void load_imm64( int x86reg, uint32_t value ) {
1.8 +static inline void load_imm64( int x86reg, uint64_t value ) {
1.9 /* mov #value, reg */
1.10 REXW();
1.11 OP(0xB8 + x86reg);
1.12 @@ -2288,7 +2288,7 @@
1.13 load_spreg( R_ECX, R_FPSCR );
1.14 TEST_imm32_r32( FPSCR_PR, R_ECX );
1.15 JNE_rel8(doubleprec );
1.16 - LEA_sh4r_r32( REG_OFFSET(fr[0][FRn&0x0E]), R_ECX );
1.17 + LEA_sh4r_rptr( REG_OFFSET(fr[0][FRn&0x0E]), R_ECX );
1.18 load_spreg( R_EDX, R_FPUL );
1.19 call_func2( sh4_fsca, R_EDX, R_ECX );
1.20 JMP_TARGET(doubleprec);
1.21 @@ -2326,7 +2326,7 @@
1.22 load_spreg( R_ECX, R_FPSCR );
1.23 TEST_imm32_r32( FPSCR_PR, R_ECX );
1.24 JNE_rel8( doubleprec );
1.25 - LEA_sh4r_r32( REG_OFFSET(fr[0][FVn<<2]), R_EDX );
1.26 + LEA_sh4r_rptr( REG_OFFSET(fr[0][FVn<<2]), R_EDX );
1.27 call_func1( sh4_ftrv, R_EDX ); // 12
1.28 JMP_TARGET(doubleprec);
1.29 sh4_x86.tstate = TSTATE_NONE;
.