Workaround for older GCCs that bug out on default arguments in template functions. Fixes OS X PowerPC MESS compile. (nw)

This commit is contained in:
R. Belmont 2013-11-17 17:50:27 +00:00
parent c9e69c39f2
commit 1f7a06b3bd
2 changed files with 13 additions and 13 deletions

View File

@ -152,19 +152,19 @@ void sam6883_device::configure_bank(int bank, UINT8 *memory, UINT32 memory_size,
switch(bank) switch(bank)
{ {
case 4: case 4:
m_space_FF00.point(&m_banks[4], 0x0000); m_space_FF00.point(&m_banks[4], 0x0000, 0);
break; break;
case 5: case 5:
m_space_FF20.point(&m_banks[5], 0x0000); m_space_FF20.point(&m_banks[5], 0x0000, 0);
break; break;
case 6: case 6:
m_space_FF40.point(&m_banks[6], 0x0000); m_space_FF40.point(&m_banks[6], 0x0000, 0);
break; break;
case 7: case 7:
m_space_FF60.point(&m_banks[7], 0x0000); m_space_FF60.point(&m_banks[7], 0x0000, 0);
break; break;
case 2: case 2:
m_space_FFE0.point(&m_banks[2], 0x1FE0); m_space_FFE0.point(&m_banks[2], 0x1FE0, 0);
break; break;
} }
} }
@ -268,9 +268,9 @@ void sam6883_device::update_memory(void)
{ {
// full 64k RAM // full 64k RAM
m_space_0000.point(&m_banks[0], 0x0000, ram_mask); m_space_0000.point(&m_banks[0], 0x0000, ram_mask);
m_space_8000.point(&m_banks[0], 0x8000); m_space_8000.point(&m_banks[0], 0x8000, 0);
m_space_A000.point(&m_banks[0], 0xA000); m_space_A000.point(&m_banks[0], 0xA000, 0);
m_space_C000.point(&m_banks[0], 0xC000); m_space_C000.point(&m_banks[0], 0xC000, 0);
m_counter_mask = 0xFFFF; m_counter_mask = 0xFFFF;
m_counter_or = 0x0000; m_counter_or = 0x0000;
setup_rom = false; setup_rom = false;
@ -288,13 +288,13 @@ void sam6883_device::update_memory(void)
if (setup_rom) if (setup_rom)
{ {
m_space_8000.point(&m_banks[1], m_banks[1].m_memory_offset); m_space_8000.point(&m_banks[1], m_banks[1].m_memory_offset, 0);
m_space_A000.point(&m_banks[2], m_banks[2].m_memory_offset); m_space_A000.point(&m_banks[2], m_banks[2].m_memory_offset, 0);
m_space_C000.point(&m_banks[3], m_banks[3].m_memory_offset); m_space_C000.point(&m_banks[3], m_banks[3].m_memory_offset, 0);
} }
// update $FFE0-$FFFF // update $FFE0-$FFFF
m_space_FFE0.point(&m_banks[2], m_banks[2].m_memory_offset + 0x1FE0); m_space_FFE0.point(&m_banks[2], m_banks[2].m_memory_offset + 0x1FE0, 0);
} }

View File

@ -155,7 +155,7 @@ private:
{ {
public: public:
sam_space(sam6883_device &owner); sam_space(sam6883_device &owner);
void point(const sam_bank *bank, UINT16 offset, UINT16 mask = 0); void point(const sam_bank *bank, UINT16 offset, UINT16 mask);
private: private:
sam6883_device & m_owner; sam6883_device & m_owner;