mirror of
https://github.com/holub/mame
synced 2025-04-24 17:30:55 +03:00
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:
parent
66585a5e2f
commit
46d3380120
@ -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) {
|
||||
// ?
|
||||
|
@ -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 -----------*/
|
||||
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user