diff options
author | Aaron Giles <aaron@aarongiles.com> | 2012-04-11 16:29:24 +0000 |
---|---|---|
committer | Aaron Giles <aaron@aarongiles.com> | 2012-04-11 16:29:24 +0000 |
commit | 4407afdb54ec5009223c349a682011ee2acd1083 (patch) | |
tree | 85c5b001e8b81e671ddb253b24fbcd5971404924 /src/mame/drivers/kinst.c | |
parent | 986f1ef77d155ababe21499a24867604b84d6564 (diff) |
Removed unnecessary target() calls from shared_ptr references.
You still need target() if you want to cast to another pointer size.
This should be rare, and in fact fixing these pointed out a few
cases where code was missing BYTE/WORD/DWORD_XOR_* macros. I flagged
these with:
// ERROR: This cast is NOT endian-safe without the use of BYTE/WORD/DWORD_XOR_* macros!
For future fixing.
Diffstat (limited to 'src/mame/drivers/kinst.c')
-rw-r--r-- | src/mame/drivers/kinst.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/mame/drivers/kinst.c b/src/mame/drivers/kinst.c index 98cfe0498af..5be4212e064 100644 --- a/src/mame/drivers/kinst.c +++ b/src/mame/drivers/kinst.c @@ -176,9 +176,9 @@ static MACHINE_START( kinst ) mips3drc_set_options(machine.device("maincpu"), MIPS3DRC_FASTEST_OPTIONS); /* configure fast RAM regions for DRC */ - mips3drc_add_fastram(machine.device("maincpu"), 0x08000000, 0x087fffff, FALSE, state->m_rambase2.target()); - mips3drc_add_fastram(machine.device("maincpu"), 0x00000000, 0x0007ffff, FALSE, state->m_rambase.target()); - mips3drc_add_fastram(machine.device("maincpu"), 0x1fc00000, 0x1fc7ffff, TRUE, state->m_rombase.target()); + mips3drc_add_fastram(machine.device("maincpu"), 0x08000000, 0x087fffff, FALSE, state->m_rambase2); + mips3drc_add_fastram(machine.device("maincpu"), 0x00000000, 0x0007ffff, FALSE, state->m_rambase); + mips3drc_add_fastram(machine.device("maincpu"), 0x1fc00000, 0x1fc7ffff, TRUE, state->m_rombase); } @@ -225,7 +225,7 @@ static MACHINE_RESET( kinst ) } /* set a safe base location for video */ - state->m_video_base = &state->m_rambase.target()[0x30000/4]; + state->m_video_base = &state->m_rambase[0x30000/4]; } @@ -333,7 +333,7 @@ READ32_MEMBER(kinst_state::kinst_control_r) /* apply shuffling */ offset = m_control_map[offset / 2]; - result = m_control.target()[offset]; + result = m_control[offset]; switch (offset) { @@ -367,16 +367,16 @@ WRITE32_MEMBER(kinst_state::kinst_control_w) /* apply shuffling */ offset = m_control_map[offset / 2]; - olddata = m_control.target()[offset]; - COMBINE_DATA(&m_control.target()[offset]); + olddata = m_control[offset]; + COMBINE_DATA(&m_control[offset]); switch (offset) { case 0: /* $80 - VRAM buffer control */ if (data & 4) - m_video_base = &m_rambase.target()[0x58000/4]; + m_video_base = &m_rambase[0x58000/4]; else - m_video_base = &m_rambase.target()[0x30000/4]; + m_video_base = &m_rambase[0x30000/4]; break; case 1: /* $88 - sound reset */ @@ -384,8 +384,8 @@ WRITE32_MEMBER(kinst_state::kinst_control_w) break; case 2: /* $90 - sound control */ - if (!(olddata & 0x02) && (m_control.target()[offset] & 0x02)) - dcs_data_w(machine(), m_control.target()[3]); + if (!(olddata & 0x02) && (m_control[offset] & 0x02)) + dcs_data_w(machine(), m_control[3]); break; case 3: /* $98 - sound data */ |