Add ARM64 emitter bugfix by HdkR.

This commit is contained in:
Henrik Rydgard 2015-09-10 18:52:31 +02:00
parent c757931779
commit 62b348452d

View File

@ -468,7 +468,7 @@ void ARM64XEmitter::EncodeTestBranchInst(u32 op, ARM64Reg Rt, u8 bits, const voi
Rt = DecodeReg(Rt);
Write32((b64Bit << 31) | (0x36 << 24) | (op << 24) | \
(bits << 19) | (distance << 5) | Rt);
(bits << 19) | (((u32)distance << 5) & 0x7FFE0) | Rt);
}
void ARM64XEmitter::EncodeUnconditionalBranchInst(u32 op, const void* ptr)