]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - sim/example-synacor/sim-main.h
sim: example-synacor: move arch-specific settings to internal header
[thirdparty/binutils-gdb.git] / sim / example-synacor / sim-main.h
index 32b33b4e90bf59522396c1e4478793120a2de326..ffd695ea226a8c770fc3b82e8338666607876706 100644 (file)
@@ -1,6 +1,6 @@
 /* Example synacor simulator.
 
-   Copyright (C) 2005-2021 Free Software Foundation, Inc.
+   Copyright (C) 2005-2022 Free Software Foundation, Inc.
    Contributed by Mike Frysinger.
 
    This file is part of simulators.
 #ifndef SIM_MAIN_H
 #define SIM_MAIN_H
 
-#define SIM_HAVE_COMMON_SIM_STATE
-
 #include "sim-basics.h"
 #include "sim-base.h"
 
-struct _sim_cpu {
-  /* ... simulator specific members ... */
-  unsigned16 regs[8];
-  sim_cia pc;
-
-  /* This isn't a real register, and the stack is not directly addressable,
-     so use memory outside of the 16-bit address space.  */
-  unsigned32 sp;
-
-  sim_cpu_base base;
-};
-
-extern void step_once (SIM_CPU *);
-extern void initialize_cpu (SIM_DESC, SIM_CPU *);
-
 #endif