OpenOCD
or1k.h File Reference
Include dependency graph for or1k.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  or1k_common
 
struct  or1k_core_reg
 
struct  or1k_core_reg_init
 
struct  or1k_jtag
 

Macros

#define GROUP0   (0 << 11)
 
#define GROUP1   (1 << 11)
 
#define GROUP10   (10 << 11)
 
#define GROUP2   (2 << 11)
 
#define GROUP3   (3 << 11)
 
#define GROUP4   (4 << 11)
 
#define GROUP5   (5 << 11)
 
#define GROUP6   (6 << 11)
 
#define GROUP7   (7 << 11)
 
#define GROUP8   (8 << 11)
 
#define GROUP9   (9 << 11)
 
#define NO_SINGLE_STEP   0
 
#define OR1K_DEBUG_REG_BASE   GROUP6 /* Debug registers Base address */
 
#define OR1K_DMR1_BT   0x00800000 /* Branch trace */
 
#define OR1K_DMR1_CPU_REG_ADD   (OR1K_DEBUG_REG_BASE + 16) /* Debug Mode Register 1 0x3010 */
 
#define OR1K_DMR1_ST   0x00400000 /* Single-step trace */
 
#define OR1K_DMR2_WGB   0x003ff000 /* Watchpoints generating breakpoint */
 
#define OR1K_DSR_TE   0x00002000 /* Trap exception */
 
#define OR1K_ICBIR_CPU_REG_ADD   ((4 << 11) + 2) /* IC Block Invalidate Register 0x2002 */
 
#define OR1K_TRAP_INSTR   0x21000001
 
#define SINGLE_STEP   1
 

Enumerations

enum  or1k_debug_reg_nums {
  OR1K_DEBUG_REG_DMR1 = 0 , OR1K_DEBUG_REG_DMR2 , OR1K_DEBUG_REG_DCWR0 , OR1K_DEBUG_REG_DCWR1 ,
  OR1K_DEBUG_REG_DSR , OR1K_DEBUG_REG_DRR , OR1K_DEBUG_REG_NUM
}
 
enum  or1k_reg_nums {
  OR1K_REG_R0 = 0 , OR1K_REG_R1 , OR1K_REG_R2 , OR1K_REG_R3 ,
  OR1K_REG_R4 , OR1K_REG_R5 , OR1K_REG_R6 , OR1K_REG_R7 ,
  OR1K_REG_R8 , OR1K_REG_R9 , OR1K_REG_R10 , OR1K_REG_R11 ,
  OR1K_REG_R12 , OR1K_REG_R13 , OR1K_REG_R14 , OR1K_REG_R15 ,
  OR1K_REG_R16 , OR1K_REG_R17 , OR1K_REG_R18 , OR1K_REG_R19 ,
  OR1K_REG_R20 , OR1K_REG_R21 , OR1K_REG_R22 , OR1K_REG_R23 ,
  OR1K_REG_R24 , OR1K_REG_R25 , OR1K_REG_R26 , OR1K_REG_R27 ,
  OR1K_REG_R28 , OR1K_REG_R29 , OR1K_REG_R30 , OR1K_REG_R31 ,
  OR1K_REG_PPC , OR1K_REG_NPC , OR1K_REG_SR , OR1KNUMCOREREGS
}
 

Functions

static struct or1k_commontarget_to_or1k (struct target *target)
 

Macro Definition Documentation

◆ GROUP0

#define GROUP0   (0 << 11)

Definition at line 25 of file or1k.h.

◆ GROUP1

#define GROUP1   (1 << 11)

Definition at line 26 of file or1k.h.

◆ GROUP10

#define GROUP10   (10 << 11)

Definition at line 35 of file or1k.h.

◆ GROUP2

#define GROUP2   (2 << 11)

Definition at line 27 of file or1k.h.

◆ GROUP3

#define GROUP3   (3 << 11)

Definition at line 28 of file or1k.h.

◆ GROUP4

#define GROUP4   (4 << 11)

Definition at line 29 of file or1k.h.

◆ GROUP5

#define GROUP5   (5 << 11)

Definition at line 30 of file or1k.h.

◆ GROUP6

#define GROUP6   (6 << 11)

Definition at line 31 of file or1k.h.

◆ GROUP7

#define GROUP7   (7 << 11)

Definition at line 32 of file or1k.h.

◆ GROUP8

#define GROUP8   (8 << 11)

Definition at line 33 of file or1k.h.

◆ GROUP9

#define GROUP9   (9 << 11)

Definition at line 34 of file or1k.h.

◆ NO_SINGLE_STEP

#define NO_SINGLE_STEP   0

Definition at line 131 of file or1k.h.

◆ OR1K_DEBUG_REG_BASE

#define OR1K_DEBUG_REG_BASE   GROUP6 /* Debug registers Base address */

Definition at line 135 of file or1k.h.

◆ OR1K_DMR1_BT

#define OR1K_DMR1_BT   0x00800000 /* Branch trace */

Definition at line 138 of file or1k.h.

◆ OR1K_DMR1_CPU_REG_ADD

#define OR1K_DMR1_CPU_REG_ADD   (OR1K_DEBUG_REG_BASE + 16) /* Debug Mode Register 1 0x3010 */

Definition at line 136 of file or1k.h.

◆ OR1K_DMR1_ST

#define OR1K_DMR1_ST   0x00400000 /* Single-step trace */

Definition at line 137 of file or1k.h.

◆ OR1K_DMR2_WGB

#define OR1K_DMR2_WGB   0x003ff000 /* Watchpoints generating breakpoint */

Definition at line 139 of file or1k.h.

◆ OR1K_DSR_TE

#define OR1K_DSR_TE   0x00002000 /* Trap exception */

Definition at line 140 of file or1k.h.

◆ OR1K_ICBIR_CPU_REG_ADD

#define OR1K_ICBIR_CPU_REG_ADD   ((4 << 11) + 2) /* IC Block Invalidate Register 0x2002 */

Definition at line 145 of file or1k.h.

◆ OR1K_TRAP_INSTR

#define OR1K_TRAP_INSTR   0x21000001

Definition at line 119 of file or1k.h.

◆ SINGLE_STEP

#define SINGLE_STEP   1

Definition at line 132 of file or1k.h.

Enumeration Type Documentation

◆ or1k_debug_reg_nums

Enumerator
OR1K_DEBUG_REG_DMR1 
OR1K_DEBUG_REG_DMR2 
OR1K_DEBUG_REG_DCWR0 
OR1K_DEBUG_REG_DCWR1 
OR1K_DEBUG_REG_DSR 
OR1K_DEBUG_REG_DRR 
OR1K_DEBUG_REG_NUM 

Definition at line 121 of file or1k.h.

◆ or1k_reg_nums

Enumerator
OR1K_REG_R0 
OR1K_REG_R1 
OR1K_REG_R2 
OR1K_REG_R3 
OR1K_REG_R4 
OR1K_REG_R5 
OR1K_REG_R6 
OR1K_REG_R7 
OR1K_REG_R8 
OR1K_REG_R9 
OR1K_REG_R10 
OR1K_REG_R11 
OR1K_REG_R12 
OR1K_REG_R13 
OR1K_REG_R14 
OR1K_REG_R15 
OR1K_REG_R16 
OR1K_REG_R17 
OR1K_REG_R18 
OR1K_REG_R19 
OR1K_REG_R20 
OR1K_REG_R21 
OR1K_REG_R22 
OR1K_REG_R23 
OR1K_REG_R24 
OR1K_REG_R25 
OR1K_REG_R26 
OR1K_REG_R27 
OR1K_REG_R28 
OR1K_REG_R29 
OR1K_REG_R30 
OR1K_REG_R31 
OR1K_REG_PPC 
OR1K_REG_NPC 
OR1K_REG_SR 
OR1KNUMCOREREGS 

Definition at line 38 of file or1k.h.

Function Documentation

◆ target_to_or1k()