diff options
author | 2025-05-02 14:59:43 +0200 | |
---|---|---|
committer | 2025-05-02 14:59:43 +0200 | |
commit | eb96d8c55247062eabb06e66a5bb774775388303 (patch) | |
tree | 91e9a0047d731ea5b727bbc2721617ff230b1a60 | |
parent | 13cc5a0d712caff6936356a916cbfb40f24d054f (diff) |
rsp: add m_v to savestates
-rw-r--r-- | src/devices/cpu/rsp/rsp.cpp | 8 | ||||
-rw-r--r-- | src/devices/cpu/rsp/rsp.h | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/devices/cpu/rsp/rsp.cpp b/src/devices/cpu/rsp/rsp.cpp index 5c7a8240304..b58b7169e80 100644 --- a/src/devices/cpu/rsp/rsp.cpp +++ b/src/devices/cpu/rsp/rsp.cpp @@ -260,7 +260,7 @@ void rsp_device::device_start() for (int regIdx = 0; regIdx < 32; regIdx++) m_r[regIdx] = 0; - for(auto & elem : m_v) + for (auto & elem : m_v) { elem.d[0] = 0; elem.d[1] = 0; @@ -279,7 +279,7 @@ void rsp_device::device_start() m_vector_busy = false; m_paired_busy = false; - for(auto & elem : m_accum) + for (auto & elem : m_accum) { elem.q = 0; } @@ -303,7 +303,6 @@ void rsp_device::device_start() save_item(NAME(m_nextpc)); save_item(NAME(m_vres)); - //save_item(NAME(m_v)); // TODO save_item(NAME(m_accum)); save_item(NAME(m_vcarry)); save_item(NAME(m_vcompare)); @@ -311,6 +310,9 @@ void rsp_device::device_start() save_item(NAME(m_vzero)); save_item(NAME(m_vclip2)); + for (int i = 0; i < std::size(m_v); i++) + save_item(NAME(m_v[i].d), i); + save_item(NAME(m_reciprocal_res)); save_item(NAME(m_reciprocal_high)); save_item(NAME(m_dp_allowed)); diff --git a/src/devices/cpu/rsp/rsp.h b/src/devices/cpu/rsp/rsp.h index 0bcef91a0a1..4e7378af089 100644 --- a/src/devices/cpu/rsp/rsp.h +++ b/src/devices/cpu/rsp/rsp.h @@ -93,8 +93,6 @@ public: auto sp_reg_w() { return m_sp_reg_w_func.bind(); } auto status_set() { return m_sp_set_status_func.bind(); } - static constexpr flags_type emulation_flags() { return flags::SAVE_UNSUPPORTED; } - protected: // device-level overrides virtual void device_start() override ATTR_COLD; |