summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Ted Green <tedgreen99@protonmail.com>2017-10-21 12:40:47 -0600
committer Ted Green <tedgreen99@protonmail.com>2017-10-21 12:41:05 -0600
commitc3192b25abbc5ef87bea4cdcd37a86ea91a6e9ac (patch)
tree108aa8dcc0cfd9354a0f0139b1aa9026bed84854
parent4ba1b373920c2f8d0d02da87305ba909cdf64793 (diff)
drcbex64: Change SSE control to not use Denormals-Are-Zero. Allows MIPs DRC to function correctly and fixes mismatch between MIPs DRC and non-DRC modes. Fixes gauntdl MT06724. (nw)
-rw-r--r--src/devices/cpu/drcbex64.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/devices/cpu/drcbex64.cpp b/src/devices/cpu/drcbex64.cpp
index 1950799624f..1f85f470cd3 100644
--- a/src/devices/cpu/drcbex64.cpp
+++ b/src/devices/cpu/drcbex64.cpp
@@ -635,10 +635,10 @@ drcbe_x64::drcbe_x64(drcuml_state &drcuml, device_t &device, drc_cache &cache, u
// build up necessary arrays
static const uint32_t sse_control[4] =
{
- 0xffc0, // ROUND_TRUNC
- 0x9fc0, // ROUND_ROUND
- 0xdfc0, // ROUND_CEIL
- 0xbfc0 // ROUND_FLOOR
+ 0xff80, // ROUND_TRUNC
+ 0x9f80, // ROUND_ROUND
+ 0xdf80, // ROUND_CEIL
+ 0xbf80 // ROUND_FLOOR
};
memcpy(m_near.ssecontrol, sse_control, sizeof(m_near.ssecontrol));
m_near.single1 = 1.0f;