OpenOCD
register.h File Reference
Include dependency graph for register.h:

Go to the source code of this file.

Data Structures

struct  reg
 
struct  reg_arch_type
 
struct  reg_cache
 
struct  reg_data_type
 
struct  reg_data_type_bitfield
 
struct  reg_data_type_flags
 
struct  reg_data_type_flags_field
 
struct  reg_data_type_struct
 
struct  reg_data_type_struct_field
 
struct  reg_data_type_union
 
struct  reg_data_type_union_field
 
struct  reg_data_type_vector
 
struct  reg_feature
 

Enumerations

enum  reg_data_type_class { REG_TYPE_CLASS_VECTOR , REG_TYPE_CLASS_UNION , REG_TYPE_CLASS_STRUCT , REG_TYPE_CLASS_FLAGS }
 
enum  reg_type {
  REG_TYPE_BOOL , REG_TYPE_INT , REG_TYPE_INT8 , REG_TYPE_INT16 ,
  REG_TYPE_INT32 , REG_TYPE_INT64 , REG_TYPE_INT128 , REG_TYPE_UINT ,
  REG_TYPE_UINT8 , REG_TYPE_UINT16 , REG_TYPE_UINT32 , REG_TYPE_UINT64 ,
  REG_TYPE_UINT128 , REG_TYPE_CODE_PTR , REG_TYPE_DATA_PTR , REG_TYPE_FLOAT ,
  REG_TYPE_IEEE_SINGLE , REG_TYPE_IEEE_DOUBLE , REG_TYPE_ARCH_DEFINED
}
 

Functions

void register_cache_invalidate (struct reg_cache *cache)
 Marks the contents of the register cache as invalid (and clean). More...
 
struct regregister_get_by_name (struct reg_cache *first, const char *name, bool search_all)
 
struct regregister_get_by_number (struct reg_cache *first, uint32_t reg_num, bool search_all)
 
struct reg_cache ** register_get_last_cache_p (struct reg_cache **first)
 
void register_init_dummy (struct reg *reg)
 
void register_unlink_cache (struct reg_cache **cache_p, const struct reg_cache *cache)
 

Enumeration Type Documentation

◆ reg_data_type_class

Enumerator
REG_TYPE_CLASS_VECTOR 
REG_TYPE_CLASS_UNION 
REG_TYPE_CLASS_STRUCT 
REG_TYPE_CLASS_FLAGS 

Definition at line 92 of file register.h.

◆ reg_type

enum reg_type
Enumerator
REG_TYPE_BOOL 
REG_TYPE_INT 
REG_TYPE_INT8 
REG_TYPE_INT16 
REG_TYPE_INT32 
REG_TYPE_INT64 
REG_TYPE_INT128 
REG_TYPE_UINT 
REG_TYPE_UINT8 
REG_TYPE_UINT16 
REG_TYPE_UINT32 
REG_TYPE_UINT64 
REG_TYPE_UINT128 
REG_TYPE_CODE_PTR 
REG_TYPE_DATA_PTR 
REG_TYPE_FLOAT 
REG_TYPE_IEEE_SINGLE 
REG_TYPE_IEEE_DOUBLE 
REG_TYPE_ARCH_DEFINED 

Definition at line 19 of file register.h.

Function Documentation

◆ register_cache_invalidate()

◆ register_get_by_name()

◆ register_get_by_number()

struct reg* register_get_by_number ( struct reg_cache first,
uint32_t  reg_num,
bool  search_all 
)

◆ register_get_last_cache_p()

◆ register_init_dummy()

void register_init_dummy ( struct reg reg)

Definition at line 123 of file register.c.

References dummy_type, and reg::type.

◆ register_unlink_cache()

void register_unlink_cache ( struct reg_cache **  cache_p,
const struct reg_cache cache 
)

Definition at line 85 of file register.c.

References reg_cache::next.

Referenced by cortex_m_dwt_free(), and xtensa_free_reg_cache().