mirror of
https://github.com/holub/mame
synced 2025-04-23 08:49:55 +03:00
Reduced tagmap lookups in gp2x.c (nw)
This commit is contained in:
parent
dde70da581
commit
ea1fd654f4
@ -26,11 +26,12 @@ class gp2x_state : public driver_device
|
||||
public:
|
||||
gp2x_state(const machine_config &mconfig, device_type type, const char *tag)
|
||||
: driver_device(mconfig, type, tag),
|
||||
m_maincpu(*this, "maincpu")
|
||||
,
|
||||
m_ram(*this, "ram"){ }
|
||||
m_maincpu(*this, "maincpu"),
|
||||
m_maincpu_region(*this, "maincpu"),
|
||||
m_ram(*this, "ram"){ }
|
||||
|
||||
required_device<cpu_device> m_maincpu;
|
||||
required_memory_region m_maincpu_region;
|
||||
DECLARE_READ32_MEMBER(gp2x_lcdc_r);
|
||||
DECLARE_WRITE32_MEMBER(gp2x_lcdc_w);
|
||||
DECLARE_READ32_MEMBER(nand_r);
|
||||
@ -202,7 +203,7 @@ WRITE32_MEMBER( gp2x_state::gp2x_lcdc_w )
|
||||
|
||||
READ32_MEMBER( gp2x_state::nand_r )
|
||||
{
|
||||
UINT32 *ROM = (UINT32 *)(*memregion("maincpu"));
|
||||
UINT32 *ROM = (UINT32 *)(*m_maincpu_region);
|
||||
UINT32 ret;
|
||||
|
||||
if (offset == 0)
|
||||
|
Loading…
Reference in New Issue
Block a user