diff options
author | Michael Pavone <pavone@retrodev.com> | 2014-02-24 09:55:24 -0800 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2014-02-24 09:55:24 -0800 |
commit | 98ce28ba0adb770e0ac29e1f9822b675ef914769 (patch) | |
tree | 81279df0c24103bf43b3a1d8425a826c8aed4685 /backend.h | |
parent | 14c0b3e916d866601311f9bbe53ab64ed560f67f (diff) |
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
Diffstat (limited to 'backend.h')
-rw-r--r-- | backend.h | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -8,6 +8,7 @@ #include <stdint.h> #include <stdio.h> +#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; |