diff options
author | bunnei <bunneidev@gmail.com> | 2014-12-13 07:24:03 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2014-12-15 03:51:46 +0100 |
commit | d26b7146cefd6a2048cb5093c8419a761b06ae69 (patch) | |
tree | 763f7e9a2a8364e3e22eb299d32888a385cbbc20 /src/core/arm/skyeye_common | |
parent | Merge pull request #258 from yuriks/log-ng (diff) | |
download | yuzu-d26b7146cefd6a2048cb5093c8419a761b06ae69.tar yuzu-d26b7146cefd6a2048cb5093c8419a761b06ae69.tar.gz yuzu-d26b7146cefd6a2048cb5093c8419a761b06ae69.tar.bz2 yuzu-d26b7146cefd6a2048cb5093c8419a761b06ae69.tar.lz yuzu-d26b7146cefd6a2048cb5093c8419a761b06ae69.tar.xz yuzu-d26b7146cefd6a2048cb5093c8419a761b06ae69.tar.zst yuzu-d26b7146cefd6a2048cb5093c8419a761b06ae69.zip |
Diffstat (limited to 'src/core/arm/skyeye_common')
-rw-r--r-- | src/core/arm/skyeye_common/armdefs.h | 1 | ||||
-rw-r--r-- | src/core/arm/skyeye_common/vfp/vfpsingle.cpp | 7 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/core/arm/skyeye_common/armdefs.h b/src/core/arm/skyeye_common/armdefs.h index 8343aaa01..9e62255aa 100644 --- a/src/core/arm/skyeye_common/armdefs.h +++ b/src/core/arm/skyeye_common/armdefs.h @@ -281,6 +281,7 @@ struct ARMul_State ARMword currentexaddr; ARMword currentexval; + ARMword currentexvald; ARMword servaddr; unsigned NextInstr; diff --git a/src/core/arm/skyeye_common/vfp/vfpsingle.cpp b/src/core/arm/skyeye_common/vfp/vfpsingle.cpp index 07d0c1f44..871900497 100644 --- a/src/core/arm/skyeye_common/vfp/vfpsingle.cpp +++ b/src/core/arm/skyeye_common/vfp/vfpsingle.cpp @@ -522,8 +522,7 @@ static s64 vfp_single_to_doubleintern(ARMul_State* state, s32 m, u32 fpscr) //ic if (tm == VFP_QNAN) vdd.significand |= VFP_DOUBLE_SIGNIFICAND_QNAN; goto pack_nan; - } - else if (tm & VFP_ZERO) + } else if (tm & VFP_ZERO) vdd.exponent = 0; else vdd.exponent = vsm.exponent + (1023 - 127); @@ -620,7 +619,7 @@ static u32 vfp_single_ftoui(ARMul_State* state, int sd, int unused, s32 m, u32 f if (vsm.exponent >= 127 + 32) { d = vsm.sign ? 0 : 0xffffffff; exceptions = FPSCR_IOC; - } else if (vsm.exponent >= 127 - 1) { + } else if (vsm.exponent >= 127) { int shift = 127 + 31 - vsm.exponent; u32 rem, incr = 0; @@ -705,7 +704,7 @@ static u32 vfp_single_ftosi(ARMul_State* state, int sd, int unused, s32 m, u32 f if (vsm.sign) d = ~d; exceptions |= FPSCR_IOC; - } else if (vsm.exponent >= 127 - 1) { + } else if (vsm.exponent >= 127) { int shift = 127 + 31 - vsm.exponent; u32 rem, incr = 0; |