A32/ir_emitter: Bugfix: ExceptionRaised was producing incorrect PC

Use actual PC and not pipelined PC.
This commit is contained in:
MerryMage 2018-09-30 19:39:11 +01:00
parent d69fceec55
commit 2524d536b0

View file

@ -87,7 +87,7 @@ void IREmitter::CallSupervisor(const IR::U32& value) {
}
void IREmitter::ExceptionRaised(const Exception exception) {
Inst(Opcode::A32ExceptionRaised, Imm32(PC()), Imm64(static_cast<u64>(exception)));
Inst(Opcode::A32ExceptionRaised, Imm32(current_location.PC()), Imm64(static_cast<u64>(exception)));
}
IR::U32 IREmitter::GetCpsr() {