v60: revert clang compile warning fix that broke conditional compile, added var to save_item to prevent that warning

This commit is contained in:
hap 2016-05-11 14:34:48 +02:00
parent 6778e724fd
commit c133569132
2 changed files with 4 additions and 0 deletions

View File

@ -85,6 +85,7 @@ v60_device::v60_device(const machine_config &mconfig, const char *tag, device_t
: cpu_device(mconfig, V60, "V60", tag, owner, clock, "v60", __FILE__) : cpu_device(mconfig, V60, "V60", tag, owner, clock, "v60", __FILE__)
, m_program_config("program", ENDIANNESS_LITTLE, 16, 24, 0) , m_program_config("program", ENDIANNESS_LITTLE, 16, 24, 0)
, m_io_config("io", ENDIANNESS_LITTLE, 16, 24, 0) , m_io_config("io", ENDIANNESS_LITTLE, 16, 24, 0)
, m_fetch_xor(BYTE_XOR_LE(0))
, m_start_pc(0xfffff0) , m_start_pc(0xfffff0)
{ {
// Set m_PIR (Processor ID) for NEC m_ LSB is reserved to NEC, // Set m_PIR (Processor ID) for NEC m_ LSB is reserved to NEC,
@ -97,6 +98,7 @@ v60_device::v60_device(const machine_config &mconfig, device_type type, const ch
: cpu_device(mconfig, type, name, tag, owner, clock, shortname, source) : cpu_device(mconfig, type, name, tag, owner, clock, shortname, source)
, m_program_config("program", ENDIANNESS_LITTLE, 32, 32, 0) , m_program_config("program", ENDIANNESS_LITTLE, 32, 32, 0)
, m_io_config("io", ENDIANNESS_LITTLE, 16, 24, 0) , m_io_config("io", ENDIANNESS_LITTLE, 16, 24, 0)
, m_fetch_xor(BYTE4_XOR_LE(0))
, m_start_pc(0xfffffff0) , m_start_pc(0xfffffff0)
{ {
// Set m_PIR (Processor ID) for NEC v70. LSB is reserved to NEC, // Set m_PIR (Processor ID) for NEC v70. LSB is reserved to NEC,
@ -426,6 +428,7 @@ void v60_device::device_start()
m_direct = &m_program->direct(); m_direct = &m_program->direct();
m_io = &space(AS_IO); m_io = &space(AS_IO);
save_item(NAME(m_fetch_xor));
save_item(NAME(m_reg)); save_item(NAME(m_reg));
save_item(NAME(m_irq_line)); save_item(NAME(m_irq_line));
save_item(NAME(m_nmi_line)); save_item(NAME(m_nmi_line));

View File

@ -151,6 +151,7 @@ private:
address_space_config m_program_config; address_space_config m_program_config;
address_space_config m_io_config; address_space_config m_io_config;
offs_t m_fetch_xor;
offs_t m_start_pc; offs_t m_start_pc;
UINT32 m_reg[68]; UINT32 m_reg[68];
struct { struct {