summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/distate.h
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2010-07-06 00:52:36 +0000
committer Aaron Giles <aaron@aarongiles.com>2010-07-06 00:52:36 +0000
commit5d21c672af07fa461ae6e0e989d2a866aff509b0 (patch)
treec0762c8e0af859079898f6442488d8f929e8e5d8 /src/emu/distate.h
parent995097894f775112942bbe13549c9ef8ab6ef3e4 (diff)
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()
Diffstat (limited to 'src/emu/distate.h')
-rw-r--r--src/emu/distate.h14
1 files changed, 7 insertions, 7 deletions
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