src/emu/schedule.c
| r15879 | r15880 | |
| 761 | 761 | min_quantum = attotime::from_hz(60); |
| 762 | 762 | |
| 763 | 763 | // if the configuration specifies a device to make perfect, pick that as the minimum |
| 764 | | if (machine().config().m_perfect_cpu_quantum != NULL) |
| 764 | if (machine().config().m_perfect_cpu_quantum) |
| 765 | 765 | { |
| 766 | 766 | device_t *device = machine().device(machine().config().m_perfect_cpu_quantum); |
| 767 | 767 | if (device == NULL) |
| 768 | | fatalerror("Device '%s' specified for perfect interleave is not present!", machine().config().m_perfect_cpu_quantum); |
| 768 | fatalerror("Device '%s' specified for perfect interleave is not present!", machine().config().m_perfect_cpu_quantum.cstr()); |
| 769 | 769 | |
| 770 | 770 | device_execute_interface *exec; |
| 771 | 771 | if (!device->interface(exec)) |
| 772 | | fatalerror("Device '%s' specified for perfect interleave is not an executing device!", machine().config().m_perfect_cpu_quantum); |
| 772 | fatalerror("Device '%s' specified for perfect interleave is not an executing device!", machine().config().m_perfect_cpu_quantum.cstr()); |
| 773 | 773 | |
| 774 | 774 | min_quantum = min(attotime(0, exec->minimum_quantum()), min_quantum); |
| 775 | 775 | } |
src/emu/mconfig.h
| r15879 | r15880 | |
| 136 | 136 | |
| 137 | 137 | // public state |
| 138 | 138 | attotime m_minimum_quantum; // minimum scheduling quantum |
| 139 | | const char * m_perfect_cpu_quantum; // tag of CPU to use for "perfect" scheduling |
| 139 | astring m_perfect_cpu_quantum; // tag of CPU to use for "perfect" scheduling |
| 140 | 140 | INT32 m_watchdog_vblank_count; // number of VBLANKs until the watchdog kills us |
| 141 | 141 | attotime m_watchdog_time; // length of time until the watchdog kills us |
| 142 | 142 | |
| r15879 | r15880 | |
| 221 | 221 | config.m_minimum_quantum = _time; \ |
| 222 | 222 | |
| 223 | 223 | #define MCFG_QUANTUM_PERFECT_CPU(_cputag) \ |
| 224 | | config.m_perfect_cpu_quantum = _cputag; \ |
| 224 | owner->subtag(config.m_perfect_cpu_quantum, _cputag); \ |
| 225 | 225 | |
| 226 | 226 | |
| 227 | |
| 227 | 228 | // watchdog configuration |
| 228 | 229 | #define MCFG_WATCHDOG_VBLANK_INIT(_count) \ |
| 229 | 230 | config.m_watchdog_vblank_count = _count; \ |