OpenOCD
armv4_5.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ARMV4_5_CORE_REG_MODE(cache, mode, num)    (cache->reg_list[armv4_5_core_reg_map[arm_mode_to_number(mode)][num]])
 

Enumerations

enum  { ARMV4_5_CPSR = 31 }
 

Functions

int arm_mode_to_number (enum arm_mode mode)
 Map PSR mode bits to linear number indexing armv4_5_core_reg_map. More...
 
enum arm_mode armv4_5_number_to_mode (int number)
 Map linear number indexing armv4_5_core_reg_map to PSR mode bits. More...
 

Variables

const int armv4_5_core_reg_map [9][17]
 

Macro Definition Documentation

◆ ARMV4_5_CORE_REG_MODE

#define ARMV4_5_CORE_REG_MODE (   cache,
  mode,
  num 
)     (cache->reg_list[armv4_5_core_reg_map[arm_mode_to_number(mode)][num]])

Definition at line 32 of file armv4_5.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
ARMV4_5_CPSR 

Definition at line 36 of file armv4_5.h.

Function Documentation

◆ arm_mode_to_number()

int arm_mode_to_number ( enum arm_mode  mode)

Map PSR mode bits to linear number indexing armv4_5_core_reg_map.

Definition at line 192 of file armv4_5.c.

References ARM_MODE_1176_MON, ARM_MODE_ABT, ARM_MODE_ANY, ARM_MODE_FIQ, ARM_MODE_HYP, ARM_MODE_IRQ, ARM_MODE_MON, ARM_MODE_SVC, ARM_MODE_SYS, ARM_MODE_UND, ARM_MODE_USR, LOG_ERROR, and mode.

Referenced by arm_set_cpsr().

◆ armv4_5_number_to_mode()

enum arm_mode armv4_5_number_to_mode ( int  number)

Map linear number indexing armv4_5_core_reg_map to PSR mode bits.

Definition at line 192 of file armv4_5.c.

Referenced by arm7_9_full_context(), arm7_9_restore_context(), xscale_full_context(), and xscale_restore_banked().

Variable Documentation

◆ armv4_5_core_reg_map

const int armv4_5_core_reg_map[9][17]
extern

Definition at line 403 of file armv4_5.c.

Referenced by arm_set_cpsr().