diff options
author | 2008-11-21 16:53:48 +0000 | |
---|---|---|
committer | 2008-11-21 16:53:48 +0000 | |
commit | 5816061f8ef57e1179f04ce8deacf550bc472a68 (patch) | |
tree | c00a75cfa64dc902100eea621160db9278a99f5b /src/emu/cpu/drcuml.c | |
parent | 3ae5e58ec1ca0c96d8b3d326992a101945779acf (diff) |
Debugger interfaces cleanup. Still more to do but this compiles and
works. Added callback parameters to the expression engine. Improved
CPU parsing so you can use a CPU tag or index in most commands that
take one. Switched to passing CPU and address space objects around
where appropriate. Lots of other minor tweaks.
Diffstat (limited to 'src/emu/cpu/drcuml.c')
-rw-r--r-- | src/emu/cpu/drcuml.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/emu/cpu/drcuml.c b/src/emu/cpu/drcuml.c index 812d795cd58..272d58de4b5 100644 --- a/src/emu/cpu/drcuml.c +++ b/src/emu/cpu/drcuml.c @@ -137,6 +137,7 @@ struct _drcuml_symbol /* structure describing UML generation state */ struct _drcuml_state { + const device_config * device; /* CPU device we are associated with */ drccache * cache; /* pointer to the codegen cache */ drcuml_block * blocklist; /* list of active blocks */ const drcbe_interface * beintf; /* backend interface pointer */ @@ -539,7 +540,7 @@ INLINE void convert_to_mov_param(drcuml_instruction *inst, int pnum) generator and initialize the back-end -------------------------------------------------*/ -drcuml_state *drcuml_alloc(drccache *cache, UINT32 flags, int modes, int addrbits, int ignorebits) +drcuml_state *drcuml_alloc(const device_config *device, drccache *cache, UINT32 flags, int modes, int addrbits, int ignorebits) { drcuml_state *drcuml; int opnum; @@ -551,6 +552,7 @@ drcuml_state *drcuml_alloc(drccache *cache, UINT32 flags, int modes, int addrbit memset(drcuml, 0, sizeof(*drcuml)); /* initialize the state */ + drcuml->device = device; drcuml->cache = cache; drcuml->beintf = (flags & DRCUML_OPTION_USE_C) ? &drcbe_c_be_interface : &NATIVE_DRC; drcuml->symtailptr = &drcuml->symlist; @@ -560,7 +562,7 @@ drcuml_state *drcuml_alloc(drccache *cache, UINT32 flags, int modes, int addrbit drcuml->umllog = fopen("drcuml.asm", "w"); /* allocate the back-end */ - drcuml->bestate = (*drcuml->beintf->be_alloc)(drcuml, cache, flags, modes, addrbits, ignorebits); + drcuml->bestate = (*drcuml->beintf->be_alloc)(drcuml, cache, device, flags, modes, addrbits, ignorebits); if (drcuml->bestate == NULL) { drcuml_free(drcuml); |