summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorRyan Houdek <Sonicadvance1@gmail.com>2013-08-30 05:13:43 -0500
committerRyan Houdek <Sonicadvance1@gmail.com>2013-08-30 05:13:43 -0500
commit710ac0408405cb85e07341699dcdc373f5a8d5f5 (patch)
treeaa2ce1549eb9daab20a5f490176d1bffd636219f /Source/Core
parent2c1337eb5f89be68ed649ec66e8805055ecfca1c (diff)
[ARM] Fix the VMOV encoding to encode the destination VFP register correctly.
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/Common/Src/ArmEmitter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/Common/Src/ArmEmitter.cpp b/Source/Core/Common/Src/ArmEmitter.cpp
index e9102f20cf..03f29da8bc 100644
--- a/Source/Core/Common/Src/ArmEmitter.cpp
+++ b/Source/Core/Common/Src/ArmEmitter.cpp
@@ -1155,9 +1155,9 @@ void ARMXEmitter::VMOV(ARMReg Dest, ARMReg Src)
{
// Move 64bit from Arm reg
ARMReg Src2 = (ARMReg)(Src + 1);
- Dest = (ARMReg)(Dest - S0);
+ Dest = SubBase(Dest);
Write32(condition | (0xC4 << 20) | (Src2 << 16) | (Src << 12) \
- | (0xB << 8) | ((Dest & 0x10) << 1) | (1 << 4) | ((Dest & 0xF) >> 1));
+ | (0xB << 8) | ((Dest & 0x10) << 1) | (1 << 4) | (Dest & 0xF));
return;
}
}