From 5221a2e0182ad3d724f4dd466c1977ff7f7c3672 Mon Sep 17 00:00:00 2001 From: AJR Date: Tue, 12 Dec 2023 22:55:36 -0500 Subject: xtensa: Clean up PC debug state registration --- src/devices/cpu/xtensa/xtensa.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/devices/cpu/xtensa/xtensa.cpp b/src/devices/cpu/xtensa/xtensa.cpp index 67a5d37991b..8fa82b240fb 100644 --- a/src/devices/cpu/xtensa/xtensa.cpp +++ b/src/devices/cpu/xtensa/xtensa.cpp @@ -363,8 +363,8 @@ void xtensa_device::device_start() set_icountptr(m_icount); state_add(XTENSA_PC, "PC", m_pc); - state_add(STATE_GENPC, "GENPC", m_pc); - state_add(STATE_GENPCBASE, "CURPC", m_pc); + state_add(STATE_GENPC, "GENPC", m_pc).noshow(); + state_add(STATE_GENPCBASE, "CURPC", m_pc).noshow(); state_add(XTENSA_WINDOW, "WinBase", m_extreg_windowbase); state_add(XTENSA_INTENABLE, "IntEnable", m_extreg_intenable); state_add(XTENSA_LOOPBEGIN, "LoopBegin", m_extreg_lbeg); @@ -374,8 +374,6 @@ void xtensa_device::device_start() for (int i = 0; i < 16; i++) state_add(XTENSA_A0 + i, string_format("a%d", i).c_str(), m_a[i]); - state_add(XTENSA_PC, "PC", m_pc); - save_item(NAME(m_a_real)); save_item(NAME(m_a)); save_item(NAME(m_pc)); -- cgit v1.2.3