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 --- gen_arm.h | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'gen_arm.h') 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 - -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); -- cgit v1.2.3