sim: rl78: rename open symbol to avoid collisions
[binutils-gdb.git] / sim / h8300 / sim-main.h
index 284a5586d16e6994e6fb0db3162dd40db9aae5da..a0aa9ef1929a1f5c1cf9d097db269ffcd136b396 100644 (file)
@@ -27,7 +27,7 @@
 /* avolkov: 
    Next 2 macros are ugly for any workstation, but while they're work.
    Memory size MUST be configurable.  */
-#define H8300H_MSIZE (1 << 18
+#define H8300H_MSIZE (1 << 24
 #define H8300S_MSIZE (1 << 24) 
 
 #define CSIZE 1024
@@ -86,10 +86,6 @@ enum h8_typecodes {
 };
 
 #include "sim-basics.h"
-
-/* Define sim_cia.  */
-typedef unsigned32 sim_cia;
-
 #include "sim-base.h"
 
 /* Structure used to describe addressing */
@@ -129,32 +125,21 @@ struct _sim_cpu {
   char **command_line;         /* Pointer to command line arguments.  */
 
   unsigned char *memory;
-  unsigned char *eightbit;
   int mask;
   
   sim_cpu_base base;
 };
 
-/* The sim_state struct.  */
-struct sim_state {
-  struct _sim_cpu *cpu;
-  unsigned int sim_cache_size;
-  decoded_inst *sim_cache;
-  unsigned short *cache_idx;
+struct h8300_sim_state {
   unsigned long memory_size;
-  int cache_top;
-  int compiles;
 #ifdef ADEBUG
   int stats[O_LAST];
 #endif
-  sim_state_base base;
 };
+#define H8300_SIM_STATE(sd) ((struct h8300_sim_state *) STATE_ARCH_DATA (sd))
 
 /* The current state of the processor; registers, memory, etc.  */
 
-#define CIA_GET(CPU)           (cpu_get_pc (CPU))
-#define CIA_SET(CPU, VAL)      (cpu_set_pc ((CPU), (VAL)))
-#define STATE_CPU(SD, N)       ((SD)->cpu)     /* Single Processor.  */
 #define cpu_set_pc(CPU, VAL)   (((CPU)->pc)  = (VAL))
 #define cpu_get_pc(CPU)                (((CPU)->pc))