OpenOCD
arm_simulator.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
3 /***************************************************************************
4  * Copyright (C) 2006 by Dominic Rath *
5  * Dominic.Rath@gmx.de *
6  ***************************************************************************/
7 
8 #ifndef OPENOCD_TARGET_ARM_SIMULATOR_H
9 #define OPENOCD_TARGET_ARM_SIMULATOR_H
10 
11 struct target;
12 
14  void *user_data;
15  uint32_t (*get_reg)(struct arm_sim_interface *sim, int reg);
16  void (*set_reg)(struct arm_sim_interface *sim, int reg, uint32_t value);
17  uint32_t (*get_reg_mode)(struct arm_sim_interface *sim, int reg);
18  void (*set_reg_mode)(struct arm_sim_interface *sim, int reg, uint32_t value);
19  uint32_t (*get_cpsr)(struct arm_sim_interface *sim, int pos, int bits);
20  enum arm_state (*get_state)(struct arm_sim_interface *sim);
21  void (*set_state)(struct arm_sim_interface *sim, enum arm_state mode);
22  enum arm_mode (*get_mode)(struct arm_sim_interface *sim);
23 };
24 
25 /* armv4_5 version */
26 int arm_simulate_step(struct target *target, uint32_t *dry_run_pc);
27 
28 #endif /* OPENOCD_TARGET_ARM_SIMULATOR_H */
arm_mode
Represent state of an ARM core.
Definition: arm.h:82
arm_state
The PSR "T" and "J" bits define the mode of "classic ARM" cores.
Definition: arm.h:150
int arm_simulate_step(struct target *target, uint32_t *dry_run_pc)
enum arm_mode mode
Definition: armv4_5.c:277
uint8_t bits[QN908X_FLASH_MAX_BLOCKS *QN908X_FLASH_PAGES_PER_BLOCK/8]
Definition: qn908x.c:0
uint32_t(* get_reg_mode)(struct arm_sim_interface *sim, int reg)
Definition: arm_simulator.h:17
enum arm_mode(* get_mode)(struct arm_sim_interface *sim)
Definition: arm_simulator.h:22
void(* set_reg)(struct arm_sim_interface *sim, int reg, uint32_t value)
Definition: arm_simulator.h:16
uint32_t(* get_cpsr)(struct arm_sim_interface *sim, int pos, int bits)
Definition: arm_simulator.h:19
uint32_t(* get_reg)(struct arm_sim_interface *sim, int reg)
Definition: arm_simulator.h:15
void(* set_state)(struct arm_sim_interface *sim, enum arm_state mode)
Definition: arm_simulator.h:21
void(* set_reg_mode)(struct arm_sim_interface *sim, int reg, uint32_t value)
Definition: arm_simulator.h:18
enum arm_state(* get_state)(struct arm_sim_interface *sim)
Definition: arm_simulator.h:20
Definition: register.h:111
Definition: target.h:116