From dc3a9f87ab72c434ef5e6a78e61fd0da62b2327e Mon Sep 17 00:00:00 2001 From: Olivier Galibert Date: Sat, 19 Jan 2019 21:46:48 +0100 Subject: sh2: Fix interpreter for cps3 [O. Galibert] --- src/devices/cpu/sh/sh2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/devices/cpu/sh/sh2.cpp b/src/devices/cpu/sh/sh2.cpp index 6eebabea4ac..d3660a52209 100644 --- a/src/devices/cpu/sh/sh2.cpp +++ b/src/devices/cpu/sh/sh2.cpp @@ -402,7 +402,7 @@ void sh2_device::execute_run() { debugger_instruction_hook(m_sh2_state->pc); - const uint16_t opcode = m_program->read_word(m_sh2_state->pc & SH12_AM); + const uint16_t opcode = m_decrypted_program->read_word(m_sh2_state->pc >= 0x40000000 ? m_sh2_state->pc : m_sh2_state->pc & SH12_AM); if (m_sh2_state->m_delay) { -- cgit v1.2.3