mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2026-03-25 09:28:42 +00:00
reg_alloc: Register allocator related constraints belong with the rest of the register allocator
HostLocToReg64 contained two DEBUG_ASSERTs invloving constraints that really belonged to the register allocator. The register allocator prevents allocation of RSP and R15 because those are reserved for the stack pointer and the state pointer respectively.
This commit is contained in:
@@ -34,6 +34,7 @@ static u32 ImmediateToU32(const IR::Value& imm) {
|
||||
|
||||
static Xbyak::Reg HostLocToX64(HostLoc hostloc) {
|
||||
if (HostLocIsGPR(hostloc)) {
|
||||
DEBUG_ASSERT(hostloc != HostLoc::RSP && hostloc != HostLoc::R15);
|
||||
return HostLocToReg64(hostloc);
|
||||
}
|
||||
if (HostLocIsXMM(hostloc)) {
|
||||
|
||||
Reference in New Issue
Block a user