X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Ftarget%2Farm_simulator.h;h=3aedaee2e8da205c5f7617282ffd1f4621a7b3d1;hp=ae3afada7936470e1ed69a26a56db9f983b0791b;hb=ebe9b7a6611210d185be88697457819f01df43ab;hpb=d4d16f1036bff4ce3c36edd1995e579fbf64e1c9 diff --git a/src/target/arm_simulator.h b/src/target/arm_simulator.h index ae3afada79..3aedaee2e8 100644 --- a/src/target/arm_simulator.h +++ b/src/target/arm_simulator.h @@ -15,33 +15,27 @@ * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the * * Free Software Foundation, Inc., * - * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * ***************************************************************************/ + #ifndef ARM_SIMULATOR_H #define ARM_SIMULATOR_H -#include - struct target; -struct arm_sim_interface -{ +struct arm_sim_interface { void *user_data; uint32_t (*get_reg)(struct arm_sim_interface *sim, int reg); void (*set_reg)(struct arm_sim_interface *sim, int reg, uint32_t value); uint32_t (*get_reg_mode)(struct arm_sim_interface *sim, int reg); void (*set_reg_mode)(struct arm_sim_interface *sim, int reg, uint32_t value); uint32_t (*get_cpsr)(struct arm_sim_interface *sim, int pos, int bits); - enum armv4_5_state (*get_state)(struct arm_sim_interface *sim); - void (*set_state)(struct arm_sim_interface *sim, enum armv4_5_state mode); + enum arm_state (*get_state)(struct arm_sim_interface *sim); + void (*set_state)(struct arm_sim_interface *sim, enum arm_state mode); enum arm_mode (*get_mode)(struct arm_sim_interface *sim); }; /* armv4_5 version */ int arm_simulate_step(struct target *target, uint32_t *dry_run_pc); -/* a generic arm simulator. Caller must implement the sim interface */ -int arm_simulate_step_core(struct target *target, - uint32_t *dry_run_pc, struct arm_sim_interface *sim); - #endif /* ARM_SIMULATOR_H */