mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-02 07:22:24 +00:00
Correctly initialize Address
This commit is contained in:
parent
8a0fe21b4e
commit
09936bdd86
@ -165,7 +165,7 @@ void EmitContext::Epilogue() {
|
|||||||
|
|
||||||
void EmitContext::SpillInst(RegAllocContext& ctx, const ActiveInstInterval& interval,
|
void EmitContext::SpillInst(RegAllocContext& ctx, const ActiveInstInterval& interval,
|
||||||
ActiveIntervalList& active_intervals) {
|
ActiveIntervalList& active_intervals) {
|
||||||
const auto get_operand = [&](IR::Inst* inst) -> Operand {
|
const auto get_operand = [&](IR::Inst* inst) -> Address {
|
||||||
size_t current_sp = inst_stack_space;
|
size_t current_sp = inst_stack_space;
|
||||||
inst_stack_space += 8;
|
inst_stack_space += 8;
|
||||||
switch (GetRegBytesOfType(IR::Value(inst))) {
|
switch (GetRegBytesOfType(IR::Value(inst))) {
|
||||||
@ -179,7 +179,7 @@ void EmitContext::SpillInst(RegAllocContext& ctx, const ActiveInstInterval& inte
|
|||||||
return qword[r11 + current_sp];
|
return qword[r11 + current_sp];
|
||||||
default:
|
default:
|
||||||
UNREACHABLE_MSG("Unsupported register size: {}", GetRegBytesOfType(inst));
|
UNREACHABLE_MSG("Unsupported register size: {}", GetRegBytesOfType(inst));
|
||||||
return {};
|
return ptr[r11 + current_sp];
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
auto spill_candidate = std::max_element(
|
auto spill_candidate = std::max_element(
|
||||||
|
Loading…
Reference in New Issue
Block a user