From fcaf4cc1e19375487c0b81afd325050546434afe Mon Sep 17 00:00:00 2001 From: Fabio Priuli Date: Sun, 21 Sep 2014 20:59:24 +0000 Subject: [PATCH] mark rev. 32216 as a temp hack, to reduce tagmap lookups. nw. --- src/emu/bus/nes/nes_slot.c | 3 ++- src/emu/bus/nes/nes_slot.h | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/emu/bus/nes/nes_slot.c b/src/emu/bus/nes/nes_slot.c index 49cc77b56ba..10ae3f72cda 100644 --- a/src/emu/bus/nes/nes_slot.c +++ b/src/emu/bus/nes/nes_slot.c @@ -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("maincpu"); if (cart_mounted) // disksys expansion can arrive here without the memory banks! diff --git a/src/emu/bus/nes/nes_slot.h b/src/emu/bus/nes/nes_slot.h index cf3b595b3fb..b6764a264da 100644 --- a/src/emu/bus/nes/nes_slot.h +++ b/src/emu/bus/nes/nes_slot.h @@ -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