diff options
author | RSDuck <RSDuck@users.noreply.github.com> | 2020-09-04 20:37:14 +0200 |
---|---|---|
committer | RSDuck <RSDuck@users.noreply.github.com> | 2020-09-04 20:37:14 +0200 |
commit | 9772201345ab47cc820fd6c08247c133605f8b84 (patch) | |
tree | b38e4a1240e31787e68bb0e8ce92f6e5c168e72e /src/ARMJIT_x64/ARMJIT_Compiler.cpp | |
parent | 94d12c68b3cc8240d52c4123cf804641fa66b40a (diff) |
remove some UB
- savestates used to read a four bytes from a single byte value
- a few unassigned variables
- some other things
- also make the ROR macro an inline function
Diffstat (limited to 'src/ARMJIT_x64/ARMJIT_Compiler.cpp')
-rw-r--r-- | src/ARMJIT_x64/ARMJIT_Compiler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ARMJIT_x64/ARMJIT_Compiler.cpp b/src/ARMJIT_x64/ARMJIT_Compiler.cpp index 1fdbaf8..c6419c9 100644 --- a/src/ARMJIT_x64/ARMJIT_Compiler.cpp +++ b/src/ARMJIT_x64/ARMJIT_Compiler.cpp @@ -106,7 +106,7 @@ void Compiler::A_Comp_MSR() Comp_AddCycles_C(); OpArg val = CurInstr.Instr & (1 << 25) - ? Imm32(ROR((CurInstr.Instr & 0xFF), ((CurInstr.Instr >> 7) & 0x1E))) + ? Imm32(::ROR((CurInstr.Instr & 0xFF), ((CurInstr.Instr >> 7) & 0x1E))) : MapReg(CurInstr.A_Reg(0)); u32 mask = 0; |