From 5d21c672af07fa461ae6e0e989d2a866aff509b0 Mon Sep 17 00:00:00 2001 From: Aaron Giles Date: Tue, 6 Jul 2010 00:52:36 +0000 Subject: Moved debugging structure away from CPUs only and attached to all devices. Debugger now creates one for each device. C++-ified most debugger operations to hang off the debugging class, and updated most callers. This still needs a little cleanup, but it fixes most issues introduced when the CPUs were moved to their own devices. Got rid of cpu_count, cpu_first, cpu_next, etc. as they were badly broken. Also removed cpu_is_executing, cpu_is_suspended, cpu_get_local_time, and cpu_abort_timeslice. Some minor name changes: state_value() -> state() state_set_value() -> set_state() --- src/emu/distate.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/emu/distate.h') diff --git a/src/emu/distate.h b/src/emu/distate.h index d1a9c177773..359beea187c 100644 --- a/src/emu/distate.h +++ b/src/emu/distate.h @@ -164,17 +164,17 @@ public: const device_state_entry *state_first() const { return m_state_list; } // state getters - UINT64 state_value(int index); - offs_t pc() { return state_value(STATE_GENPC); } - offs_t pcbase() { return state_value(STATE_GENPCBASE); } - offs_t sp() { return state_value(STATE_GENSP); } - UINT64 flags() { return state_value(STATE_GENFLAGS); } + UINT64 state(int index); + offs_t pc() { return state(STATE_GENPC); } + offs_t pcbase() { return state(STATE_GENPCBASE); } + offs_t sp() { return state(STATE_GENSP); } + UINT64 flags() { return state(STATE_GENFLAGS); } astring &state_string(int index, astring &dest); int state_string_max_length(int index); // state setters - void state_set_value(int index, UINT64 value); - void state_set_value(int index, const char *string); + void set_state(int index, UINT64 value); + void set_state(int index, const char *string); public: // protected eventually -- cgit v1.2.3-70-g09d2