OpenOCD
nds32_reg.c File Reference
Include dependency graph for nds32_reg.c:

Go to the source code of this file.

Functions

bool nds32_reg_exception (uint32_t number, uint32_t value)
 
void nds32_reg_init (void)
 
static void nds32_reg_set (uint32_t number, const char *simple_mnemonic, const char *symbolic_mnemonic, uint32_t sr_index, enum nds32_reg_type_s type, uint8_t size)
 
const char * nds32_reg_simple_name (uint32_t number)
 
uint8_t nds32_reg_size (uint32_t number)
 
uint32_t nds32_reg_sr_index (uint32_t number)
 
const char * nds32_reg_symbolic_name (uint32_t number)
 
enum nds32_reg_type_s nds32_reg_type (uint32_t number)
 

Variables

static const struct nds32_reg_exception_s nds32_ex_reg_values []
 
static bool nds32_reg_init_done
 
static struct nds32_reg_s nds32_regs [TOTAL_REG_NUM]
 

Function Documentation

◆ nds32_reg_exception()

bool nds32_reg_exception ( uint32_t  number,
uint32_t  value 
)

◆ nds32_reg_init()

void nds32_reg_init ( void  )

Definition at line 41 of file nds32_reg.c.

References ADM_VBASE, CB_CTL, CBB0, CBB1, CBB2, CBB3, CBE0, CBE1, CBE2, CBE3, CR0, CR1, CR2, CR3, CR4, CR5, CR6, D0HI, D0L24, D0LO, D1HI, D1L24, D1LO, DMAR0, DMAR1, DMAR10, DMAR2, DMAR3, DMAR4, DMAR5, DMAR6, DMAR7, DMAR8, DMAR9, DR0, DR1, DR10, DR11, DR12, DR13, DR14, DR15, DR16, DR17, DR18, DR19, DR2, DR20, DR21, DR22, DR23, DR24, DR25, DR26, DR27, DR28, DR29, DR3, DR30, DR31, DR32, DR33, DR34, DR35, DR36, DR37, DR38, DR39, DR4, DR40, DR41, DR42, DR43, DR44, DR45, DR46, DR47, DR48, DR5, DR6, DR7, DR8, DR9, FD0, FD1, FD10, FD11, FD12, FD13, FD14, FD15, FD16, FD17, FD18, FD19, FD2, FD20, FD21, FD22, FD23, FD24, FD25, FD26, FD27, FD28, FD29, FD3, FD30, FD31, FD4, FD5, FD6, FD7, FD8, FD9, FPCFG, FPCSR, FS0, FS1, FS10, FS11, FS12, FS13, FS14, FS15, FS16, FS17, FS18, FS19, FS2, FS20, FS21, FS22, FS23, FS24, FS25, FS26, FS27, FS28, FS29, FS3, FS30, FS31, FS4, FS5, FS6, FS7, FS8, FS9, FUCPR, I0, I1, I2, I3, I4, I5, I6, I7, IDR0, IDR1, IFC_LP, IR0, IR1, IR10, IR11, IR12, IR13, IR14, IR15, IR16, IR17, IR18, IR19, IR2, IR20, IR21, IR22, IR23, IR24, IR25, IR26, IR27, IR28, IR29, IR3, IR30, IR4, IR5, IR6, IR7, IR8, IR9, ITB, LBE, LC, LE, M1, M2, M3, M5, M6, M7, MOD, MR0, MR1, MR10, MR11, MR2, MR3, MR4, MR5, MR6, MR7, MR8, MR9, nds32_reg_init_done, nds32_reg_set(), NDS32_REG_TYPE_AUMR, NDS32_REG_TYPE_CR, NDS32_REG_TYPE_DMAR, NDS32_REG_TYPE_DR, NDS32_REG_TYPE_FPU, NDS32_REG_TYPE_GPR, NDS32_REG_TYPE_IDR, NDS32_REG_TYPE_IR, NDS32_REG_TYPE_MR, NDS32_REG_TYPE_PFR, NDS32_REG_TYPE_RACR, NDS32_REG_TYPE_SECURE, NDS32_REG_TYPE_SPR, PC, PFR0, PFR1, PFR2, PFR3, R0, R1, R10, R11, R12, R13, R14, R15, R16, R17, R18, R19, R2, R20, R21, R22, R23, R24, R25, R26, R27, R28, R29, R3, R30, R31, R4, R5, R6, R7, R8, R9, RACR, SECUR0, SHFT_CTL0, SHFT_CTL1, and SRIDX.

Referenced by nds32_init_arch_info().

◆ nds32_reg_set()

static void nds32_reg_set ( uint32_t  number,
const char *  simple_mnemonic,
const char *  symbolic_mnemonic,
uint32_t  sr_index,
enum nds32_reg_type_s  type,
uint8_t  size 
)
inlinestatic

◆ nds32_reg_simple_name()

const char* nds32_reg_simple_name ( uint32_t  number)

◆ nds32_reg_size()

uint8_t nds32_reg_size ( uint32_t  number)

Definition at line 330 of file nds32_reg.c.

References nds32_regs, number, and nds32_reg_s::size.

Referenced by nds32_build_reg_cache().

◆ nds32_reg_sr_index()

uint32_t nds32_reg_sr_index ( uint32_t  number)

Definition at line 320 of file nds32_reg.c.

References nds32_regs, number, and nds32_reg_s::sr_index.

Referenced by aice_read_reg(), aice_write_reg(), and fill_profiling_batch_commands().

◆ nds32_reg_symbolic_name()

const char* nds32_reg_symbolic_name ( uint32_t  number)

Definition at line 340 of file nds32_reg.c.

References nds32_regs, number, and nds32_reg_s::symbolic_mnemonic.

◆ nds32_reg_type()

enum nds32_reg_type_s nds32_reg_type ( uint32_t  number)

Variable Documentation

◆ nds32_ex_reg_values

const struct nds32_reg_exception_s nds32_ex_reg_values[]
static
Initial value:
= {
{IR0, 3, 0x3, 2},
{IR0, 3, 0x3, 3},
{IR1, 3, 0x3, 2},
{IR1, 3, 0x3, 3},
{IR2, 3, 0x3, 2},
{IR2, 3, 0x3, 3},
{MR3, 1, 0x7, 0},
{MR3, 1, 0x7, 4},
{MR3, 1, 0x7, 6},
{MR3, 8, 0x7, 3},
{0, 0, 0, 0},
}
@ MR3
Definition: nds32_reg.h:95
@ IR1
Definition: nds32_reg.h:62
@ IR0
Definition: nds32_reg.h:61
@ IR2
Definition: nds32_reg.h:63

Definition at line 14 of file nds32_reg.c.

Referenced by nds32_reg_exception().

◆ nds32_reg_init_done

bool nds32_reg_init_done
static

Definition at line 14 of file nds32_reg.c.

Referenced by nds32_reg_init().

◆ nds32_regs