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

Go to the source code of this file.

Data Structures

struct  nds32_reg_exception_s
 
struct  nds32_reg_s
 

Macros

#define NDS32_REGISTER_DISABLE   (0x0)
 
#define SRIDX(a, b, c)   ((a << 7) | (b << 3) | c)
 

Enumerations

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

Functions

bool nds32_reg_exception (uint32_t number, uint32_t value)
 
void nds32_reg_init (void)
 
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)
 

Macro Definition Documentation

◆ NDS32_REGISTER_DISABLE

#define NDS32_REGISTER_DISABLE   (0x0)

Definition at line 12 of file nds32_reg.h.

◆ SRIDX

#define SRIDX (   a,
  b,
 
)    ((a << 7) | (b << 3) | c)

Definition at line 11 of file nds32_reg.h.

Enumeration Type Documentation

◆ nds32_reg_number_s

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

Definition at line 14 of file nds32_reg.h.

◆ nds32_reg_type_s

Enumerator
NDS32_REG_TYPE_GPR 
NDS32_REG_TYPE_SPR 
NDS32_REG_TYPE_CR 
NDS32_REG_TYPE_IR 
NDS32_REG_TYPE_MR 
NDS32_REG_TYPE_DR 
NDS32_REG_TYPE_PFR 
NDS32_REG_TYPE_DMAR 
NDS32_REG_TYPE_RACR 
NDS32_REG_TYPE_IDR 
NDS32_REG_TYPE_AUMR 
NDS32_REG_TYPE_SECURE 
NDS32_REG_TYPE_FPU 

Definition at line 275 of file nds32_reg.h.

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_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)