diff backend.c @ 558:dc9f178085a0

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.
author Mike Pavone <pavone@retrodev.com>
date Mon, 24 Feb 2014 01:30:16 -0800
parents acec5464fa1e
children a18e3923481e
line wrap: on
line diff
--- a/backend.c	Mon Feb 24 00:50:15 2014 -0800
+++ b/backend.c	Mon Feb 24 01:30:16 2014 -0800
@@ -30,10 +30,10 @@
 	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;