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 /gen_arm.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 'gen_arm.h')
-rw-r--r-- | gen_arm.h | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -7,11 +7,7 @@ #define GEN_ARM_H_ #include <stdint.h> - -typedef struct { - uint32_t *cur; - uint32_t *last; -} code_info; +#include "gen.h" #define SET_COND 0x100000u #define NO_COND 0u @@ -73,8 +69,6 @@ enum { #define LR 0x4000 #define PC 0x8000 -void init_code_info(code_info *code); - uint32_t and(code_info *code, uint32_t dst, uint32_t src1, uint32_t src2, uint32_t set_cond); uint32_t andi(code_info *code, uint32_t dst, uint32_t src1, uint32_t immed, uint32_t set_cond); uint32_t and_cc(code_info *code, uint32_t dst, uint32_t src1, uint32_t src2, uint32_t cc, uint32_t set_cond); |