diff options
author | 2008-11-13 06:59:57 +0000 | |
---|---|---|
committer | 2008-11-13 06:59:57 +0000 | |
commit | 63d10ee9bfbb5bc4adb2754a6b0fa790ea0a2851 (patch) | |
tree | 99e2b37ce2640e230780a124c7b7743674b7cf33 /src/emu/machine/8237dma.c | |
parent | 451a03ff700ed296c16df3620b25042a449cc68f (diff) |
Massive API cleanup/change. The primary goal is that all CPU-
related APIs now take a device pointer instead of an index.
All functions that take a CPU device are prefixed with cpu_*
All functions that are globally related to cpu execution
are prefixed with cpuexec_*. Below is a list of some of the
mappings:
cpu_boost_interleave -> cpuexec_boost_interleave
cpunum_suspend -> cpu_suspend
cpunum_resume -> cpu_resume
cpunum_is_suspended -> cpu_is_suspended
cpunum_get_clock -> cpu_get_clock
cpunum_set_clock -> cpu_set_clock
cpunum_get_clockscale -> cpu_get_clockscale
cpunum_set_clockscale -> cpu_set_clockscale
cpunum_get_localtime -> cpu_get_local_time
cpunum_gettotalcycles -> cpu_get_total_cycles
activecpu_eat_cycles -> cpu_eat_cycles
activecpu_adjust_icount -> cpu_adjust_icount
cpu_trigger -> cpuexec_trigger
cpu_triggertime -> cpuexec_triggertime
cpunum_set_input_line -> cpu_set_input_line
cpunum_set_irq_callback -> cpu_set_irq_callback
In addition, a number of functions retain the same name but
now require a specific CPU parameter to be passed in:
cpu_yield
cpu_spin
cpu_spinuntil_time
cpu_spinuntil_int
cpu_spinuntil_trigger
cpu_triggerint
Merged cpuint.c into cpuexec.c. One side-effect of this
change is that driver reset callbacks are called AFTER the
CPUs and devices are reset. This means that if you make
changes to the CPU state and expect the reset vectors to
recognize the changes in your reset routine, you will need
to manually reset the CPU after making the change (since it
has already been reset).
Added a number of inline helper functions to cpuintrf.h for
managing addresses
Removed cpu_gettotalcpu(). This information is rarely needed
outside of the core and can be obtained by looking at the
machine->cpu[] array.
Changed CPU interrupt acknowledge callbacks to pass a CPU
device instead of machine/cpunum pair.
Changed VBLANK and periodic timer callbacks to pass a CPU
device instead of machine/cpunum pair.
Renamed all information getters from cpu_* to cpu_get_* and
from cputype_* to cputype_get_*.
Diffstat (limited to 'src/emu/machine/8237dma.c')
-rw-r--r-- | src/emu/machine/8237dma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emu/machine/8237dma.c b/src/emu/machine/8237dma.c index 385fbfba3f4..78a1d2b01d1 100644 --- a/src/emu/machine/8237dma.c +++ b/src/emu/machine/8237dma.c @@ -176,7 +176,7 @@ static void dma8237_update_status(const device_config *device) /* set the halt line */ if (dma8237->intf && dma8237->intf->cpunum >= 0) { - cpunum_set_input_line(device->machine, dma8237->intf->cpunum, INPUT_LINE_HALT, + cpu_set_input_line(device->machine->cpu[dma8237->intf->cpunum], INPUT_LINE_HALT, pending_transfer ? ASSERT_LINE : CLEAR_LINE); } |