diff options
author | 2008-01-14 00:42:14 +0000 | |
---|---|---|
committer | 2008-01-14 00:42:14 +0000 | |
commit | fe41f9bd011fdfcad27bb071d47646f3dd04a284 (patch) | |
tree | d9da9a5c5e1da786d53ef9e13fc87bd8d371509e /src/emu/machine/6522via.c | |
parent | 5c4577f3643ec89935bf292c61d4ed322503d946 (diff) |
Added CPUINFO_INT_CLOCK_MULTIPLIER to support CPU clock multipliers.
Updated all CPU cores to return a CPUINFO_INT_CLOCK_MULTIPLIER of 1.
Changed the core to actually respect both CPUINFO_INT_CLOCK_MULTIPLIER and CPUINFO_INT_CLOCK_DIVIDER.
Updated a number of drivers to use cpunum_get_clock() instead of Machine->drv->cpu[x].clock.
***** Raw input clock speeds should now be specified for all CPUs in the MACHINE_DRIVER. *****
Removed explicit divisors from all drivers using the following CPU types,
which were already specifying non-1 values for CPUINFO_INT_CLOCK_DIVIDER:
* COP4x0
* I8039/8048 families
* M68(7)05, HD63705
* M6809E
* PIC16C5X
* TMS32010
* TMS340x0
In a few cases, it appears that the divisor was not being used, so I guessed in those cases whether or not
the specified clock speed was raw.
Diffstat (limited to 'src/emu/machine/6522via.c')
-rw-r--r-- | src/emu/machine/6522via.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emu/machine/6522via.c b/src/emu/machine/6522via.c index 790010ad3ea..8113e75f0ed 100644 --- a/src/emu/machine/6522via.c +++ b/src/emu/machine/6522via.c @@ -165,7 +165,7 @@ void via_config(int which, const struct via6522_interface *intf) via[which].time2 = via[which].time1 = timer_get_time(); /* Default clock is from CPU1 */ - via_set_clock (which, Machine->drv->cpu[0].clock); + via_set_clock (which, cpunum_get_clock(0)); } /******************* external interrupt check *******************/ |