From 98ce28ba0adb770e0ac29e1f9822b675ef914769 Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Mon, 24 Feb 2014 09:55:24 -0800 Subject: Moved some generic stuff from backend.h gen_arm.h and gen_arm.c into gen.h and gen.c. Added a couple fields to cpu_options so that gen_mem_fun can be made guest CPU generic --- backend.h | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'backend.h') diff --git a/backend.h b/backend.h index d35a1ec..697ea7a 100644 --- a/backend.h +++ b/backend.h @@ -8,6 +8,7 @@ #include #include +#include "gen.h" #define INVALID_OFFSET 0xFFFFFFFF #define EXTENSION_WORD 0xFFFFFFFE @@ -20,12 +21,6 @@ typedef struct { uint8_t cycles; } x86_ea; -#if defined(X86_64) || defined(X86_32) -typedef uint8_t* code_ptr; -#else -typedef uint32_t* code_ptr; -#endif - typedef struct { uint8_t *base; int32_t *offsets; @@ -56,6 +51,8 @@ typedef struct { code_ptr handle_cycle_limit; code_ptr handle_cycle_limit_int; uint8_t context_reg; + uint8_t cycles; + uint8_t limit; uint8_t scratch1; uint8_t scratch2; } cpu_options; -- cgit v1.2.3