diff options
author | 2008-12-09 06:21:15 +0000 | |
---|---|---|
committer | 2008-12-09 06:21:15 +0000 | |
commit | eb43d347250b70ebbc5e3ec03d21ec727973e643 (patch) | |
tree | b81831a4a21af46f47f8bcbaf5729bab7bf5359c /src/emu/cpu/mips | |
parent | 183b7c9de7fdafcd7b24a7acf76d37fa1da3a927 (diff) |
Re-routed empty get/set context calls to the dummy CPU's, and removed them
from the CPU cores.
Disabled the use of PULSE_LINE for any input lines except NMI and RESET.
Added a helper function generic_pulse_irq_line() for doing a single-cycle
assert/deassert for those few drivers remaining that were trying to use
PULSE_LINE directly.
Diffstat (limited to 'src/emu/cpu/mips')
-rw-r--r-- | src/emu/cpu/mips/mips3drc.c | 20 | ||||
-rw-r--r-- | src/emu/cpu/mips/psx.c | 8 | ||||
-rw-r--r-- | src/emu/cpu/mips/r3000.c | 15 |
3 files changed, 6 insertions, 37 deletions
diff --git a/src/emu/cpu/mips/mips3drc.c b/src/emu/cpu/mips/mips3drc.c index b4afc2120e4..c4f77bd3d1b 100644 --- a/src/emu/cpu/mips/mips3drc.c +++ b/src/emu/cpu/mips/mips3drc.c @@ -540,22 +540,6 @@ static CPU_EXIT( mips3 ) /*------------------------------------------------- - mips3_get_context - return a copy of the - current context --------------------------------------------------*/ - -static CPU_GET_CONTEXT( mips3 ) { } - - -/*------------------------------------------------- - mips3_set_context - copy the current context - into the global state --------------------------------------------------*/ - -static CPU_SET_CONTEXT( mips3 ) { } - - -/*------------------------------------------------- mips3_translate - perform virtual-to-physical address translation -------------------------------------------------*/ @@ -626,8 +610,8 @@ static CPU_GET_INFO( mips3 ) /* --- the following bits of info are returned as pointers to data or functions --- */ case CPUINFO_PTR_SET_INFO: info->setinfo = CPU_SET_INFO_NAME(mips3); break; - case CPUINFO_PTR_GET_CONTEXT: info->getcontext = CPU_GET_CONTEXT_NAME(mips3); break; - case CPUINFO_PTR_SET_CONTEXT: info->setcontext = CPU_SET_CONTEXT_NAME(mips3); break; + case CPUINFO_PTR_GET_CONTEXT: info->getcontext = CPU_GET_CONTEXT_NAME(dummy); break; + case CPUINFO_PTR_SET_CONTEXT: info->setcontext = CPU_SET_CONTEXT_NAME(dummy); break; case CPUINFO_PTR_INIT: /* provided per-CPU */ break; case CPUINFO_PTR_RESET: info->reset = CPU_RESET_NAME(mips3); break; case CPUINFO_PTR_EXIT: info->exit = CPU_EXIT_NAME(mips3); break; diff --git a/src/emu/cpu/mips/psx.c b/src/emu/cpu/mips/psx.c index d4921aedd01..c0aa550fa4f 100644 --- a/src/emu/cpu/mips/psx.c +++ b/src/emu/cpu/mips/psx.c @@ -2835,10 +2835,6 @@ static CPU_EXECUTE( psxcpu ) return cycles - psxcpu->icount; } -static CPU_GET_CONTEXT( psxcpu ) { } - -static CPU_SET_CONTEXT( psxcpu ) { } - static void set_irq_line( psxcpu_state *psxcpu, int irqline, int state ) { UINT32 ip; @@ -4192,8 +4188,8 @@ CPU_GET_INFO( psxcpu ) /* --- the following bits of info are returned as pointers to data or functions --- */ case CPUINFO_PTR_SET_INFO: info->setinfo = CPU_SET_INFO_NAME(psxcpu); break; - case CPUINFO_PTR_GET_CONTEXT: info->getcontext = CPU_GET_CONTEXT_NAME(psxcpu); break; - case CPUINFO_PTR_SET_CONTEXT: info->setcontext = CPU_SET_CONTEXT_NAME(psxcpu); break; + case CPUINFO_PTR_GET_CONTEXT: info->getcontext = CPU_GET_CONTEXT_NAME(dummy); break; + case CPUINFO_PTR_SET_CONTEXT: info->setcontext = CPU_SET_CONTEXT_NAME(dummy); break; case CPUINFO_PTR_INIT: info->init = CPU_INIT_NAME(psxcpu); break; case CPUINFO_PTR_RESET: info->reset = CPU_RESET_NAME(psxcpu); break; case CPUINFO_PTR_EXIT: info->exit = CPU_EXIT_NAME(psxcpu); break; diff --git a/src/emu/cpu/mips/r3000.c b/src/emu/cpu/mips/r3000.c index dab1beb1c8f..844c2ec6496 100644 --- a/src/emu/cpu/mips/r3000.c +++ b/src/emu/cpu/mips/r3000.c @@ -281,17 +281,6 @@ static void set_irq_line(r3000_state *r3000, int irqline, int state) /*************************************************************************** - CONTEXT SWITCHING -***************************************************************************/ - -static CPU_GET_CONTEXT( r3000 ) { } - - -static CPU_SET_CONTEXT( r3000 ) { } - - - -/*************************************************************************** INITIALIZATION AND SHUTDOWN ***************************************************************************/ @@ -1253,8 +1242,8 @@ static CPU_GET_INFO( r3000 ) /* --- the following bits of info are returned as pointers to data or functions --- */ case CPUINFO_PTR_SET_INFO: info->setinfo = CPU_SET_INFO_NAME(r3000); break; - case CPUINFO_PTR_GET_CONTEXT: info->getcontext = CPU_GET_CONTEXT_NAME(r3000); break; - case CPUINFO_PTR_SET_CONTEXT: info->setcontext = CPU_SET_CONTEXT_NAME(r3000); break; + case CPUINFO_PTR_GET_CONTEXT: info->getcontext = CPU_GET_CONTEXT_NAME(dummy); break; + case CPUINFO_PTR_SET_CONTEXT: info->setcontext = CPU_SET_CONTEXT_NAME(dummy); break; case CPUINFO_PTR_INIT: info->init = CPU_INIT_NAME(r3000); break; case CPUINFO_PTR_RESET: /* provided per-CPU */ break; case CPUINFO_PTR_EXIT: info->exit = CPU_EXIT_NAME(r3000); break; |