From 2417204b5f46b843dcc32ce666ac30a54d218edf Mon Sep 17 00:00:00 2001 From: Maxim Poliakovski Date: Fri, 19 Jul 2019 20:52:59 +0200 Subject: [PATCH] main: use correct variable for PC updates. --- main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.cpp b/main.cpp index 3e9e2a6..cb0d302 100644 --- a/main.cpp +++ b/main.cpp @@ -790,7 +790,7 @@ int main(int argc, char **argv) quickinstruction_translate(ppc_state.ppc_pc); ppc_main_opcode(); if (grab_branch & !grab_exception){ - ppc_state.ppc_pc = ppc_effective_address; + ppc_state.ppc_pc = ppc_next_instruction_address; grab_branch = 0; ppc_tbr_update(); } @@ -833,7 +833,7 @@ int main(int argc, char **argv) quickinstruction_translate(ppc_state.ppc_pc); ppc_main_opcode(); if (grab_branch & !grab_exception){ - ppc_state.ppc_pc = ppc_effective_address; + ppc_state.ppc_pc = ppc_next_instruction_address; grab_branch = 0; ppc_tbr_update(); }