From 2524d536b02b65a9ffbd88cb0f698d29b4e443e1 Mon Sep 17 00:00:00 2001 From: MerryMage Date: Sun, 30 Sep 2018 19:39:11 +0100 Subject: [PATCH] A32/ir_emitter: Bugfix: ExceptionRaised was producing incorrect PC Use actual PC and not pipelined PC. --- src/frontend/A32/ir_emitter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/A32/ir_emitter.cpp b/src/frontend/A32/ir_emitter.cpp index a72b1f92..481e2dbe 100644 --- a/src/frontend/A32/ir_emitter.cpp +++ b/src/frontend/A32/ir_emitter.cpp @@ -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(exception))); + Inst(Opcode::A32ExceptionRaised, Imm32(current_location.PC()), Imm64(static_cast(exception))); } IR::U32 IREmitter::GetCpsr() {