[a64] Fix resetting of labels during Emplace

On the x64 side, this is the same as the `reset()` function resetting the label-manager
This commit is contained in:
Wunkolo 2024-05-04 16:12:48 -07:00
parent 5b8ac36aa6
commit 65288d5796

View file

@ -163,7 +163,9 @@ void* A64Emitter::Emplace(const EmitFunctionInfo& func_info,
// top_ = old_address;
set_wptr(reinterpret_cast<uint32_t*>(old_address));
// reset();
label_lookup_.clear();
return new_execute_address;
}
@ -399,7 +401,6 @@ void A64Emitter::Trap(uint16_t trap_type) {
break;
default:
XELOGW("Unknown trap type {}", trap_type);
// db(0xCC);
BRK(0xF000);
break;
}
@ -407,7 +408,6 @@ void A64Emitter::Trap(uint16_t trap_type) {
void A64Emitter::UnimplementedInstr(const hir::Instr* i) {
// TODO(benvanik): notify debugger.
// db(0xCC);
BRK(0xF000);
assert_always();
}