mirror of
https://github.com/holub/mame
synced 2025-05-19 03:59:35 +03:00
rsp: add m_v to savestates
This commit is contained in:
parent
13cc5a0d71
commit
eb96d8c552
@ -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));
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user