summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2021-04-19 17:05:15 -0700
committer Aaron Giles <aaron@aarongiles.com>2021-04-19 17:05:15 -0700
commit1ce5dd10d2dde1ba537cbf215ba075ab53a5246b (patch)
tree1bc56b2a8bc9eb611636f9f418f7ea21fd211c03
parent4b2560619a1def6c86af279eee2ad8680d09c5d3 (diff)
Fix voodoo and sharc saving to abide by new rules.
-rw-r--r--src/devices/cpu/sharc/sharc.cpp3
-rw-r--r--src/devices/video/voodoo.cpp7
-rw-r--r--src/devices/video/voodoo.h6
3 files changed, 10 insertions, 6 deletions
diff --git a/src/devices/cpu/sharc/sharc.cpp b/src/devices/cpu/sharc/sharc.cpp
index 87034bdeb4c..23de02148f4 100644
--- a/src/devices/cpu/sharc/sharc.cpp
+++ b/src/devices/cpu/sharc/sharc.cpp
@@ -778,7 +778,8 @@ void adsp21062_device::device_start()
void adsp21062_device::device_register_save(save_registrar &save)
{
- save.reg(NAME(*m_core));
+ save_registrar container(save, "drc_near_cache");
+ container.reg(NAME(*m_core));
}
diff --git a/src/devices/video/voodoo.cpp b/src/devices/video/voodoo.cpp
index 7fb68665194..09d91c0c72e 100644
--- a/src/devices/video/voodoo.cpp
+++ b/src/devices/video/voodoo.cpp
@@ -1162,9 +1162,14 @@ void voodoo_device::device_register_save(save_registrar &save)
save.reg(NAME(extra_cycles))
.reg(NAME(reg))
.reg(NAME(alt_regmap))
+ .reg(NAME(m_fbmem_alloc), m_fbmem << 20);
+ if (m_tmumem_alloc[0])
+ save.reg(NAME(m_tmumem_alloc[0]), m_tmumem0 << 20);
+ if (m_tmumem_alloc[1])
+ save.reg(NAME(m_tmumem_alloc[1]), m_tmumem1 << 20);
/* register states: pci */
- .reg(NAME(pci))
+ save.reg(NAME(pci))
/* register states: dac */
.reg(NAME(dac))
diff --git a/src/devices/video/voodoo.h b/src/devices/video/voodoo.h
index 4b1ae56ad1c..5235bf85703 100644
--- a/src/devices/video/voodoo.h
+++ b/src/devices/video/voodoo.h
@@ -1133,8 +1133,7 @@ protected:
void register_save(save_registrar &save)
{
- save.reg(NAME(ram), mask + 1)
- .reg(NAME(starts)).reg(NAME(startt))
+ save.reg(NAME(starts)).reg(NAME(startt))
.reg(NAME(startw))
.reg(NAME(dsdx)).reg(NAME(dtdx))
.reg(NAME(dwdx))
@@ -1248,8 +1247,7 @@ protected:
void register_save(save_registrar &save)
{
- save.reg(NAME(ram), mask + 1)
- .reg(NAME(rgboffs))
+ save.reg(NAME(rgboffs))
.reg(NAME(auxoffs))
.reg(NAME(frontbuf))
.reg(NAME(backbuf))