diff gen_arm.h @ 563:c8fefa140c80

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
author Michael Pavone <pavone@retrodev.com>
date Mon, 24 Feb 2014 09:55:24 -0800
parents 1af6c1052993
children bff307e03a94
line wrap: on
line diff
--- a/gen_arm.h	Mon Feb 24 01:30:16 2014 -0800
+++ b/gen_arm.h	Mon Feb 24 09:55:24 2014 -0800
@@ -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 @@
 #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);