summaryrefslogtreecommitdiff
path: root/gen_arm.h
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2014-02-24 09:55:24 -0800
committerMichael Pavone <pavone@retrodev.com>2014-02-24 09:55:24 -0800
commit98ce28ba0adb770e0ac29e1f9822b675ef914769 (patch)
tree81279df0c24103bf43b3a1d8425a826c8aed4685 /gen_arm.h
parent14c0b3e916d866601311f9bbe53ab64ed560f67f (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.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/gen_arm.h b/gen_arm.h
index cd351fc..749f78c 100644
--- a/gen_arm.h
+++ b/gen_arm.h
@@ -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);