summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/diexec.c
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2010-06-30 03:46:21 +0000
committer Aaron Giles <aaron@aarongiles.com>2010-06-30 03:46:21 +0000
commit733b797a3dae6c89b11c9b3f3eaad68995f6ef09 (patch)
tree6fa31dcfd68bd9c4a34dd8f2c139d63c00d3e33e /src/emu/diexec.c
parent2c549dad23fd5b5e8dc48e5a9c8f7790d17e697d (diff)
Split mame.c into mame.c and machine.c, the latter containing the
running_machine definition and implementation. Moved global machine-level operations and accessors into methods on the running_machine class. For the most part, this doesn't affect drivers except for a few occasional bits: mame_get_phase() == machine->phase() add_reset_callback() == machine->add_notifier(MACHINE_NOTIFY_RESET, ...) add_exit_callback() == machine->add_notifier(MACHINE_NOTIFY_EXIT, ...) mame_get_base_datetime() == machine->base_datetime() mame_get_current_datetime() == machine->current_datetime() Cleaned up the region_info class, removing most global region accessors except for memory_region() and memory_region_length(). Again, this doesn't generally affect drivers.
Diffstat (limited to 'src/emu/diexec.c')
-rw-r--r--src/emu/diexec.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/emu/diexec.c b/src/emu/diexec.c
index 16ee47f37c4..0436c7c1155 100644
--- a/src/emu/diexec.c
+++ b/src/emu/diexec.c
@@ -303,7 +303,7 @@ device_execute_interface::~device_execute_interface()
bool device_execute_interface::is_executing() const
{
- return (this == m_machine.scheduler.currently_executing());
+ return (this == m_machine.scheduler().currently_executing());
}
@@ -361,7 +361,7 @@ void device_execute_interface::adjust_icount(int delta)
void device_execute_interface::abort_timeslice()
{
// ignore if not the executing device
- if (this != m_machine.scheduler.currently_executing())
+ if (this != m_machine.scheduler().currently_executing())
return;
// swallow the remaining cycles
@@ -655,7 +655,7 @@ void device_execute_interface::interface_clock_changed()
m_divisor = attos;
// re-compute the perfect interleave factor
- m_machine.scheduler.compute_perfect_interleave();
+ m_machine.scheduler().compute_perfect_interleave();
}