summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2018-05-11 09:07:42 -0400
committer AJR <ajrhacker@users.noreply.github.com>2018-05-11 09:07:42 -0400
commitc66ca3bc64a5793f4ce00bc4c8a1f8538c0cb046 (patch)
treeb0c5b0dd91f4816a830bcbb21a84e41c36173aef /src/devices/cpu
parent36946bb332ad3649c4fe14e11218237b18dbed3f (diff)
Fix build (nw)
Diffstat (limited to 'src/devices/cpu')
-rw-r--r--src/devices/cpu/nec/nec.cpp11
-rw-r--r--src/devices/cpu/nec/nec.h3
-rw-r--r--src/devices/cpu/nec/v53.cpp8
-rw-r--r--src/devices/cpu/nec/v53.h2
4 files changed, 11 insertions, 13 deletions
diff --git a/src/devices/cpu/nec/nec.cpp b/src/devices/cpu/nec/nec.cpp
index 9b7661adc82..9296d952ba5 100644
--- a/src/devices/cpu/nec/nec.cpp
+++ b/src/devices/cpu/nec/nec.cpp
@@ -123,11 +123,10 @@ DEFINE_DEVICE_TYPE(V33A, v33a_device, "v33a", "NEC V33A")
-nec_common_device::nec_common_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, bool is_16bit, offs_t fetch_xor, uint8_t prefetch_size, uint8_t prefetch_cycles, uint32_t chip_type)
+nec_common_device::nec_common_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, bool is_16bit, uint8_t prefetch_size, uint8_t prefetch_cycles, uint32_t chip_type)
: cpu_device(mconfig, type, tag, owner, clock)
, m_program_config("program", ENDIANNESS_LITTLE, is_16bit ? 16 : 8, 20, 0)
, m_io_config("io", ENDIANNESS_LITTLE, is_16bit ? 16 : 8, 16, 0)
- , m_fetch_xor(fetch_xor)
, m_prefetch_size(prefetch_size)
, m_prefetch_cycles(prefetch_cycles)
, m_chip_type(chip_type)
@@ -136,13 +135,13 @@ nec_common_device::nec_common_device(const machine_config &mconfig, device_type
v20_device::v20_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
- : nec_common_device(mconfig, V20, tag, owner, clock, false, 0, 4, 4, V20_TYPE)
+ : nec_common_device(mconfig, V20, tag, owner, clock, false, 4, 4, V20_TYPE)
{
}
v30_device::v30_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
- : nec_common_device(mconfig, V30, tag, owner, clock, true, BYTE_XOR_LE(0), 6, 2, V30_TYPE)
+ : nec_common_device(mconfig, V30, tag, owner, clock, true, 6, 2, V30_TYPE)
{
}
@@ -159,13 +158,13 @@ device_memory_interface::space_config_vector nec_common_device::memory_space_con
* complete guess below, nbbatman will not work
* properly without. */
v33_device::v33_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
- : nec_common_device(mconfig, V33, tag, owner, clock, true, BYTE_XOR_LE(0), 6, 1, V33_TYPE)
+ : nec_common_device(mconfig, V33, tag, owner, clock, true, 6, 1, V33_TYPE)
{
}
v33a_device::v33a_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
- : nec_common_device(mconfig, V33A, tag, owner, clock, true, BYTE_XOR_LE(0), 6, 1, V33_TYPE)
+ : nec_common_device(mconfig, V33A, tag, owner, clock, true, 6, 1, V33_TYPE)
{
}
diff --git a/src/devices/cpu/nec/nec.h b/src/devices/cpu/nec/nec.h
index becf599aa94..2124d0814f9 100644
--- a/src/devices/cpu/nec/nec.h
+++ b/src/devices/cpu/nec/nec.h
@@ -25,7 +25,7 @@ class nec_common_device : public cpu_device
{
protected:
// construction/destruction
- nec_common_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, bool is_16bit, offs_t fetch_xor, uint8_t prefetch_size, uint8_t prefetch_cycles, uint32_t chip_type);
+ nec_common_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, bool is_16bit, uint8_t prefetch_size, uint8_t prefetch_cycles, uint32_t chip_type);
// device-level overrides
virtual void device_start() override;
@@ -62,7 +62,6 @@ private:
};
necbasicregs m_regs;
- offs_t m_fetch_xor;
uint16_t m_sregs[4];
uint16_t m_ip;
diff --git a/src/devices/cpu/nec/v53.cpp b/src/devices/cpu/nec/v53.cpp
index cd26e6e774d..f5b0187511f 100644
--- a/src/devices/cpu/nec/v53.cpp
+++ b/src/devices/cpu/nec/v53.cpp
@@ -535,8 +535,8 @@ MACHINE_CONFIG_START(v53_base_device::device_add_mconfig)
MACHINE_CONFIG_END
-v53_base_device::v53_base_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, offs_t fetch_xor, uint8_t prefetch_size, uint8_t prefetch_cycles, uint32_t chip_type)
- : nec_common_device(mconfig, type, tag, owner, clock, true, fetch_xor, prefetch_size, prefetch_cycles, chip_type),
+v53_base_device::v53_base_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, uint8_t prefetch_size, uint8_t prefetch_cycles, uint32_t chip_type)
+ : nec_common_device(mconfig, type, tag, owner, clock, true, prefetch_size, prefetch_cycles, chip_type),
m_io_space_config( "io", ENDIANNESS_LITTLE, 16, 16, 0, address_map_constructor(FUNC(v53_base_device::v53_internal_port_map), this) ),
m_v53tcu(*this, "pit"),
m_v53dmau(*this, "upd71071dma"),
@@ -576,12 +576,12 @@ v53_base_device::v53_base_device(const machine_config &mconfig, device_type type
v53_device::v53_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
- : v53_base_device(mconfig, V53, tag, owner, clock, BYTE_XOR_LE(0), 6, 1, V33_TYPE)
+ : v53_base_device(mconfig, V53, tag, owner, clock, 6, 1, V33_TYPE)
{
}
v53a_device::v53a_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
- : v53_base_device(mconfig, V53A, tag, owner, clock, BYTE_XOR_LE(0), 6, 1, V33_TYPE)
+ : v53_base_device(mconfig, V53A, tag, owner, clock, 6, 1, V33_TYPE)
{
}
diff --git a/src/devices/cpu/nec/v53.h b/src/devices/cpu/nec/v53.h
index dfecbfb5f04..ef3450bb74e 100644
--- a/src/devices/cpu/nec/v53.h
+++ b/src/devices/cpu/nec/v53.h
@@ -194,7 +194,7 @@ public:
void v53_internal_port_map(address_map &map);
protected:
- v53_base_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, offs_t fetch_xor, uint8_t prefetch_size, uint8_t prefetch_cycles, uint32_t chip_type);
+ v53_base_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock, uint8_t prefetch_size, uint8_t prefetch_cycles, uint32_t chip_type);
// device-level overrides
virtual void device_add_mconfig(machine_config &config) override;