Search
lxdream.org :: lxdream :: r1231:d63c808ddcd3
lxdream 0.9.1
released Jun 29
Download Now
changeset1231:d63c808ddcd3
parent1229:dc935eee9767
parent1230:64a91ef571fc
child1232:e5b12e2fe6ba
authornkeynes
dateThu Feb 23 20:16:37 2012 +1000 (7 years ago)
Merge emu sign-extension fix to top
src/sh4/sh4core.in
1.1 --- a/src/sh4/sh4core.in Thu Feb 23 19:43:24 2012 +1000
1.2 +++ b/src/sh4/sh4core.in Thu Feb 23 20:16:37 2012 +1000
1.3 @@ -709,7 +709,7 @@
1.4 :}
1.5 MULS.W Rm, Rn {:
1.6 sh4r.mac = (sh4r.mac&0xFFFFFFFF00000000LL) |
1.7 - (uint32_t)(SIGNEXT32(sh4r.r[Rm]&0xFFFF) * SIGNEXT32(sh4r.r[Rn]&0xFFFF));
1.8 + (uint32_t)(SIGNEXT32((int16_t)(sh4r.r[Rm])) * SIGNEXT32((int16_t)(sh4r.r[Rn])));
1.9 :}
1.10 NEGC Rm, Rn {:
1.11 tmp = 0 - sh4r.r[Rm];
1.12 @@ -1234,7 +1234,7 @@
1.13 if( IS_FPU_DOUBLEPREC() ) {
1.14 DR(FRn) += DR(FRm)*DR(0);
1.15 } else {
1.16 - FR(FRn) += FR(FRm)*FR(0);
1.17 + FR(FRn) += (double)FR(FRm)*(double)FR(0);
1.18 }
1.19 :}
1.20 FRCHG {:
.