summaryrefslogtreecommitdiff
path: root/backend.c
diff options
context:
space:
mode:
authorMike Pavone <pavone@retrodev.com>2014-02-24 01:30:16 -0800
committerMike Pavone <pavone@retrodev.com>2014-02-24 01:30:16 -0800
commit14c0b3e916d866601311f9bbe53ab64ed560f67f (patch)
tree015e3c591d1c092c20bbc940f0e1b5d10be4a9c6 /backend.c
parentfcf5fcfccb16b87e69b3ce9dd8dc74dbbaf426db (diff)
Use a typedef code_ptr in place of uint8_t * in 68K core to better support host instruction sets with different instruction word sizes. Make x86_68k_options contain a cpu_options so that gen_mem_fun can eventually be shared with the Z80 core.
Diffstat (limited to 'backend.c')
-rw-r--r--backend.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/backend.c b/backend.c
index 8062145..eaae9d7 100644
--- a/backend.c
+++ b/backend.c
@@ -30,10 +30,10 @@ void process_deferred(deferred_addr ** head_ptr, void * context, native_addr_fun
deferred_addr **last_next = head_ptr;
while(cur)
{
- uint8_t * native = get_native(context, cur->address);//get_native_address(opts->native_code_map, cur->address);
+ code_ptr native = get_native(context, cur->address);//get_native_address(opts->native_code_map, cur->address);
if (native) {
int32_t disp = native - (cur->dest + 4);
- uint8_t * out = cur->dest;
+ code_ptr out = cur->dest;
*(out++) = disp;
disp >>= 8;
*(out++) = disp;