probably fix (somebody who knows it, please check this driver, it seems a little too keen on poking around with internals) (nw)

This commit is contained in:
David Haywood 2013-06-25 12:47:40 +00:00
parent 66585a5e2f
commit 46d3380120
3 changed files with 4 additions and 5 deletions

View File

@ -219,7 +219,6 @@ UINT32 apollo_get_node_id(void) {
int apollo_instruction_hook(m68000_base_device *device, offs_t curpc)
{
m68000_base_device *m68k = device;
//m68000_base_device *m68k = (m68000_base_device *) downcast<legacy_cpu_device *> (device)->token();
static UINT16 idle_counter = 0;
@ -513,7 +512,7 @@ READ32_MEMBER(apollo_state::apollo_unmapped_r)
{
offs_t address = offset * 4;
m68000_base_device *m68k = (m68000_base_device *) downcast<legacy_cpu_device *>(&space.device())->token();
m68000_base_device *m68k = m_maincpu;
if ((address & 0xfff00000) == 0xfa800000 && VERBOSE < 2) {
// ?

View File

@ -60,7 +60,7 @@
/*----------- machine/apollo_dbg.c -----------*/
int apollo_debug_instruction_hook(device_t *device, offs_t curpc);
int apollo_debug_instruction_hook(m68000_base_device *device, offs_t curpc);
/*----------- drivers/apollo.c -----------*/

View File

@ -1100,7 +1100,7 @@ static const UINT16 *get_data(m68000_base_device *m68k, offs_t addr)
// before executing each instruction
//-------------------------------------------------
int apollo_debug_instruction_hook(device_t *device, offs_t curpc)
int apollo_debug_instruction_hook(m68000_base_device *device, offs_t curpc)
{
// trap data remembered for next rte
static struct {
@ -1114,7 +1114,7 @@ int apollo_debug_instruction_hook(device_t *device, offs_t curpc)
{
UINT32 ppc_save;
UINT16 ir;
m68000_base_device *m68k = (m68000_base_device *) downcast<legacy_cpu_device *> (device)->token();
m68000_base_device *m68k = device;
m68k->mmu_tmp_buserror_occurred = 0;
/* Read next instruction */