From 14c0b3e916d866601311f9bbe53ab64ed560f67f Mon Sep 17 00:00:00 2001 From: Mike Pavone Date: Mon, 24 Feb 2014 01:30:16 -0800 Subject: 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. --- backend.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'backend.c') 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; -- cgit v1.2.3