Search
lxdream.org :: lxdream :: r789:7e7ec23217fc
lxdream 0.9.1
released Jun 29
Download Now
changeset789:7e7ec23217fc
parent788:eb238a77f3c0
child790:a0c7d28bbb0c
authornkeynes
dateWed Jul 30 00:10:48 2008 +0000 (11 years ago)
Fix 64-bit correctness in ptr loads in FTRC
src/sh4/sh4x86.in
1.1 --- a/src/sh4/sh4x86.in Tue Jul 29 23:25:03 2008 +0000
1.2 +++ b/src/sh4/sh4x86.in Wed Jul 30 00:10:48 2008 +0000
1.3 @@ -2017,17 +2017,17 @@
1.4 JMP_TARGET(doubleprec);
1.5 push_dr( FRm );
1.6 JMP_TARGET( doop );
1.7 - load_imm32( R_ECX, (uint32_t)&max_int );
1.8 + load_ptr( R_ECX, &max_int );
1.9 FILD_r32ind( R_ECX );
1.10 FCOMIP_st(1);
1.11 JNA_rel8( sat );
1.12 - load_imm32( R_ECX, (uint32_t)&min_int ); // 5
1.13 + load_ptr( R_ECX, &min_int ); // 5
1.14 FILD_r32ind( R_ECX ); // 2
1.15 FCOMIP_st(1); // 2
1.16 JAE_rel8( sat2 ); // 2
1.17 - load_imm32( R_EAX, (uint32_t)&save_fcw );
1.18 + load_ptr( R_EAX, &save_fcw );
1.19 FNSTCW_r32ind( R_EAX );
1.20 - load_imm32( R_EDX, (uint32_t)&trunc_fcw );
1.21 + load_ptr( R_EDX, &trunc_fcw );
1.22 FLDCW_r32ind( R_EDX );
1.23 FISTP_sh4r(R_FPUL); // 3
1.24 FLDCW_r32ind( R_EAX );
.