diff options
author | 2010-07-01 00:34:46 +0000 | |
---|---|---|
committer | 2010-07-01 00:34:46 +0000 | |
commit | de771cbfeb7c38387972208e5c731c6074e89318 (patch) | |
tree | c54ebeb9f02a82e39f81e2f3aaa3d291f06d7c15 /src/emu/devcpu.h | |
parent | dfc04871c447c7fe041d15023b472a641454ffc7 (diff) |
Remove the following functions:
cpu_get_total_cycles() == cpudevice->total_cycles()
cpu_clocks_to_attotime() == cpudevice->cycles_to_attotime()
cpu_attotime_to_clocks() == cpudevice->attotime_to_cycles()
In some cases, I updated existing code that fetched and cached
devices to fetch them as cpu_device so that these can be called
without casting.
In other cases, I did the quick & dirty thing which was to downcast
a generic device to a cpu_device and then call the function.
Note that cpu_clocks_to_attotime() and cpu_attotime_to_clocks()
were previously mapping to the device-level functions
clocks_to_attotime() and attotime_to_clocks(). This was different
behavior than before the big devices change, so with this update
I have fixed it to match the previous behavior (i.e., map cycles
not clocks).
This may impact timing of drivers that used these functions on
CPUs that have clock dividers or multipliers.
Diffstat (limited to 'src/emu/devcpu.h')
-rw-r--r-- | src/emu/devcpu.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/emu/devcpu.h b/src/emu/devcpu.h index c825cdca0fb..6bd7941e8d3 100644 --- a/src/emu/devcpu.h +++ b/src/emu/devcpu.h @@ -271,12 +271,9 @@ enum #define cpu_set_clock device_set_clock #define cpu_get_clockscale device_get_clock_scale #define cpu_set_clockscale device_set_clock_scale -#define cpu_clocks_to_attotime device_clocks_to_attotime -#define cpu_attotime_to_clocks device_attotime_to_clocks // CPU timing #define cpu_get_local_time device_get_local_time -#define cpu_get_total_cycles device_get_total_cycles #define cpu_eat_cycles device_eat_cycles #define cpu_adjust_icount device_adjust_icount #define cpu_abort_timeslice device_abort_timeslice @@ -309,7 +306,6 @@ enum #define cputag_suspend(mach, tag, reason, eat) device_suspend((mach)->device(tag), reason, eat) #define cputag_resume(mach, tag, reason) device_resume((mach)->device(tag), reason) #define cputag_is_suspended(mach, tag, reason) device_is_suspended((mach)->device(tag), reason) -#define cputag_get_total_cycles(mach, tag) device_get_total_cycles((mach)->device(tag)) #define cputag_set_input_line(mach, tag, line, state) downcast<cpu_device *>((mach)->device(tag))->set_input_line(line, state) #define cputag_set_input_line_and_vector(mach, tag, line, state, vec) downcast<cpu_device *>((mach)->device(tag))->set_input_line_and_vector(line, state, vec) |