summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatarGravatar R. Belmont <rb6502@users.noreply.github.com>2017-10-10 21:07:46 -0400
committerGravatarGravatar GitHub <noreply@github.com>2017-10-10 21:07:46 -0400
commit53a8f2695fc8b88bcbdac3f56977599e8c406b76 (patch) (github)
treeef122de67c36503eb4d05460fd5116075fb513f4
parentdc2b6e95eb10f67ee483079f097cf3e1d5e3f695 (diff)
parent056f7f2d62aab282081985b4f2950817fe564c55 (diff)
downloadmame-53a8f2695fc8b88bcbdac3f56977599e8c406b76.tar.bz2
mame-53a8f2695fc8b88bcbdac3f56977599e8c406b76.zip
Merge pull request #2663 from pmackinlay/master
eeprom: don't check endianness (nw)
-rw-r--r--src/devices/machine/eeprom.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/machine/eeprom.cpp b/src/devices/machine/eeprom.cpp
index 48bed1af960..b5866d3fd4c 100644
--- a/src/devices/machine/eeprom.cpp
+++ b/src/devices/machine/eeprom.cpp
@@ -258,8 +258,8 @@ void eeprom_base_device::nvram_default()
fatalerror("eeprom region '%s' wrong size (expected size = 0x%X)\n", tag(), eeprom_bytes);
if (m_data_bits == 8 && m_region->bytewidth() != 1)
fatalerror("eeprom region '%s' needs to be an 8-bit region\n", tag());
- if (m_data_bits == 16 && (m_region->bytewidth() != 2 || m_region->endianness() != ENDIANNESS_BIG))
- fatalerror("eeprom region '%s' needs to be a 16-bit big-endian region\n", tag());
+ if (m_data_bits == 16 && m_region->bytewidth() != 2)
+ fatalerror("eeprom region '%s' needs to be a 16-bit region\n", tag());
osd_printf_verbose("Loading data from EEPROM region '%s'\n", tag());
memcpy(&m_data[0], m_region->base(), eeprom_bytes);