mark rev. 32216 as a temp hack, to reduce tagmap lookups. nw.

This commit is contained in:
Fabio Priuli 2014-09-21 20:59:24 +00:00
parent 100082ceda
commit fcaf4cc1e1
2 changed files with 5 additions and 1 deletions

View File

@ -665,7 +665,8 @@ WRITE8_MEMBER(device_nes_cart_interface::write_h)
void device_nes_cart_interface::pcb_start(running_machine &machine, UINT8 *ciram_ptr, bool cart_mounted)
{
// HACK: to reduce tagmap lookups for PPU-related IRQs, we add a hook to the
// main NES CPU here, even if it does not belong to this device.
m_maincpu = machine.device<cpu_device>("maincpu");
if (cart_mounted) // disksys expansion can arrive here without the memory banks!

View File

@ -232,6 +232,9 @@ protected:
dynamic_buffer m_vram;
dynamic_buffer m_battery;
UINT8 *m_ciram;
// HACK: to reduce tagmap lookups for PPU-related IRQs, we add a hook to the
// main NES CPU here, even if it does not belong to this device.
cpu_device *m_maincpu;
// these are specific of some boards but must be accessible from the driver