diff options
author | Lioncash <mathew1800@gmail.com> | 2015-07-28 04:22:00 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2015-07-28 04:22:00 +0200 |
commit | 7e4fb4db193433c77ffd707b62d11e58e46c684e (patch) | |
tree | d0e9acb6e566d23e133bea77c5026f7aeb06e2c8 /src/core/arm/dyncom/arm_dyncom_thumb.cpp | |
parent | dyncom: Migrate exclusive memory access control into armstate (diff) | |
download | yuzu-7e4fb4db193433c77ffd707b62d11e58e46c684e.tar yuzu-7e4fb4db193433c77ffd707b62d11e58e46c684e.tar.gz yuzu-7e4fb4db193433c77ffd707b62d11e58e46c684e.tar.bz2 yuzu-7e4fb4db193433c77ffd707b62d11e58e46c684e.tar.lz yuzu-7e4fb4db193433c77ffd707b62d11e58e46c684e.tar.xz yuzu-7e4fb4db193433c77ffd707b62d11e58e46c684e.tar.zst yuzu-7e4fb4db193433c77ffd707b62d11e58e46c684e.zip |
Diffstat (limited to 'src/core/arm/dyncom/arm_dyncom_thumb.cpp')
-rw-r--r-- | src/core/arm/dyncom/arm_dyncom_thumb.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/core/arm/dyncom/arm_dyncom_thumb.cpp b/src/core/arm/dyncom/arm_dyncom_thumb.cpp index 2860af376..6eb03fb5a 100644 --- a/src/core/arm/dyncom/arm_dyncom_thumb.cpp +++ b/src/core/arm/dyncom/arm_dyncom_thumb.cpp @@ -14,13 +14,7 @@ tdstate thumb_translate(u32 addr, u32 instr, u32* ainstr, u32* inst_size) { tdstate valid = t_uninitialized; - u32 tinstr = instr; - - // The endian should be judge here - if((addr & 0x3) != 0) - tinstr = instr >> 16; - else - tinstr &= 0xFFFF; + u32 tinstr = GetThumbInstruction(instr, addr); *ainstr = 0xDEADC0DE; // Debugging to catch non updates |