mirror of
https://github.com/xenia-project/xenia.git
synced 2025-12-06 07:12:03 +01:00
[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:
parent
5b8ac36aa6
commit
65288d5796
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue