summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatarGravatar Ryan Holtz <ryan.holtz@arrowheadgs.com>2020-05-20 19:56:35 +0200
committerGravatarGravatar Ryan Holtz <ryan.holtz@arrowheadgs.com>2020-05-20 19:56:55 +0200
commite335f258db4e9436ef2e5bd375713ba37987caf0 (patch) (github)
tree9348f09584a771d2753005ac2c87f1d77f0c4b59
parentb6c5f7c9dae9c353593d165a100b20279e4f401b (diff)
downloadmame-e335f258db4e9436ef2e5bd375713ba37987caf0.tar.bz2
mame-e335f258db4e9436ef2e5bd375713ba37987caf0.zip
-sparc: Use memory_access_specific for a minor speedup, nw
-rw-r--r--src/devices/cpu/sparc/sparc.cpp2
-rw-r--r--src/devices/cpu/sparc/sparc.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/cpu/sparc/sparc.cpp b/src/devices/cpu/sparc/sparc.cpp
index f24a4f6a93c..38a47934f1b 100644
--- a/src/devices/cpu/sparc/sparc.cpp
+++ b/src/devices/cpu/sparc/sparc.cpp
@@ -174,7 +174,7 @@ void sparc_base_device::device_start()
{
continue;
}
- m_asi[i] = &space(i);
+ m_asi[i] = space(i).specific<2, 0, ENDIANNESS_BIG>();
}
memset(m_dbgregs, 0, 24 * sizeof(uint32_t));
diff --git a/src/devices/cpu/sparc/sparc.h b/src/devices/cpu/sparc/sparc.h
index de7fa3d3797..e65e406ce1d 100644
--- a/src/devices/cpu/sparc/sparc.h
+++ b/src/devices/cpu/sparc/sparc.h
@@ -157,7 +157,7 @@ protected:
// address spaces
address_space_config m_debugger_config;
address_space_config m_asi_config[0x10];
- address_space *m_asi[0x20];
+ memory_access_specific<2, 0, ENDIANNESS_BIG> *m_asi[0x20];
// memory access
inline uint32_t read_word(const uint8_t asi, const uint32_t address, const uint32_t mem_mask = 0xffffffff);