mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2026-01-02 12:44:34 +01: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:
parent
5f11b4f50e
commit
3621a925b2
3 changed files with 3 additions and 2 deletions
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue