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

Go to the source code of this file.

Data Structures

struct  esirisc_common
 
union  esirisc_memory
 
struct  esirisc_reg
 

Macros

#define EID_ALIGNMENT_ERROR   0x09
 
#define EID_ARITHMETIC_ERROR   0x0a
 
#define EID_DATA_BREAKPOINT   0x04
 
#define EID_DATA_BUS_ERROR   0x08
 
#define EID_HARDWARE_FAILURE   0x01
 
#define EID_INST_BREAKPOINT   0x03
 
#define EID_INST_BUS_ERROR   0x07
 
#define EID_INTERRUPT_N   0x20
 
#define EID_MEMORY_MANAGEMENT   0x0c
 
#define EID_NMI   0x02
 
#define EID_PRIVILEGE_VIOLATION   0x06
 
#define EID_RESET   0x00
 
#define EID_SYSTEM_CALL   0x0b
 
#define EID_UNRECOVERABLE   0x0d
 
#define EID_UNSUPPORTED   0x05
 
#define ENTRY_DEBUG   0x06
 
#define ENTRY_HARDWARE_FAILURE   0x02
 
#define ENTRY_INTERRUPT_N   0x08
 
#define ENTRY_MEMORY   0x04
 
#define ENTRY_NMI   0x07
 
#define ENTRY_RESET   0x00
 
#define ENTRY_RUNTIME   0x03
 
#define ENTRY_SYSCALL   0x05
 
#define ENTRY_UNRECOVERABLE   0x01
 
#define HWDC_D   (1<<0) /* Debug Exceptions */
 
#define HWDC_E   (1<<1) /* Program Errors */
 
#define HWDC_I   (1<<3) /* Interrupts */
 
#define HWDC_R   (1<<4) /* Reset & Hardware Failure */
 
#define HWDC_S   (1<<2) /* System Calls */
 
#define MAX_BREAKPOINTS   8
 
#define MAX_WATCHPOINTS   8
 

Enumerations

enum  esirisc_cache { ESIRISC_CACHE_VON_NEUMANN , ESIRISC_CACHE_HARVARD }
 

Functions

static char * esirisc_cache_arch_name (struct esirisc_common *esirisc)
 
static bool esirisc_has_cache (struct esirisc_common *esirisc)
 
static struct esirisc_commontarget_to_esirisc (const struct target *target)
 

Macro Definition Documentation

◆ EID_ALIGNMENT_ERROR

#define EID_ALIGNMENT_ERROR   0x09

Definition at line 34 of file esirisc.h.

◆ EID_ARITHMETIC_ERROR

#define EID_ARITHMETIC_ERROR   0x0a

Definition at line 35 of file esirisc.h.

◆ EID_DATA_BREAKPOINT

#define EID_DATA_BREAKPOINT   0x04

Definition at line 29 of file esirisc.h.

◆ EID_DATA_BUS_ERROR

#define EID_DATA_BUS_ERROR   0x08

Definition at line 33 of file esirisc.h.

◆ EID_HARDWARE_FAILURE

#define EID_HARDWARE_FAILURE   0x01

Definition at line 26 of file esirisc.h.

◆ EID_INST_BREAKPOINT

#define EID_INST_BREAKPOINT   0x03

Definition at line 28 of file esirisc.h.

◆ EID_INST_BUS_ERROR

#define EID_INST_BUS_ERROR   0x07

Definition at line 32 of file esirisc.h.

◆ EID_INTERRUPT_N

#define EID_INTERRUPT_N   0x20

Definition at line 39 of file esirisc.h.

◆ EID_MEMORY_MANAGEMENT

#define EID_MEMORY_MANAGEMENT   0x0c

Definition at line 37 of file esirisc.h.

◆ EID_NMI

#define EID_NMI   0x02

Definition at line 27 of file esirisc.h.

◆ EID_PRIVILEGE_VIOLATION

#define EID_PRIVILEGE_VIOLATION   0x06

Definition at line 31 of file esirisc.h.

◆ EID_RESET

#define EID_RESET   0x00

Definition at line 25 of file esirisc.h.

◆ EID_SYSTEM_CALL

#define EID_SYSTEM_CALL   0x0b

Definition at line 36 of file esirisc.h.

◆ EID_UNRECOVERABLE

#define EID_UNRECOVERABLE   0x0d

Definition at line 38 of file esirisc.h.

◆ EID_UNSUPPORTED

#define EID_UNSUPPORTED   0x05

Definition at line 30 of file esirisc.h.

◆ ENTRY_DEBUG

#define ENTRY_DEBUG   0x06

Definition at line 48 of file esirisc.h.

◆ ENTRY_HARDWARE_FAILURE

#define ENTRY_HARDWARE_FAILURE   0x02

Definition at line 44 of file esirisc.h.

◆ ENTRY_INTERRUPT_N

#define ENTRY_INTERRUPT_N   0x08

Definition at line 50 of file esirisc.h.

◆ ENTRY_MEMORY

#define ENTRY_MEMORY   0x04

Definition at line 46 of file esirisc.h.

◆ ENTRY_NMI

#define ENTRY_NMI   0x07

Definition at line 49 of file esirisc.h.

◆ ENTRY_RESET

#define ENTRY_RESET   0x00

Definition at line 42 of file esirisc.h.

◆ ENTRY_RUNTIME

#define ENTRY_RUNTIME   0x03

Definition at line 45 of file esirisc.h.

◆ ENTRY_SYSCALL

#define ENTRY_SYSCALL   0x05

Definition at line 47 of file esirisc.h.

◆ ENTRY_UNRECOVERABLE

#define ENTRY_UNRECOVERABLE   0x01

Definition at line 43 of file esirisc.h.

◆ HWDC_D

#define HWDC_D   (1<<0) /* Debug Exceptions */

Definition at line 57 of file esirisc.h.

◆ HWDC_E

#define HWDC_E   (1<<1) /* Program Errors */

Definition at line 56 of file esirisc.h.

◆ HWDC_I

#define HWDC_I   (1<<3) /* Interrupts */

Definition at line 54 of file esirisc.h.

◆ HWDC_R

#define HWDC_R   (1<<4) /* Reset & Hardware Failure */

Definition at line 53 of file esirisc.h.

◆ HWDC_S

#define HWDC_S   (1<<2) /* System Calls */

Definition at line 55 of file esirisc.h.

◆ MAX_BREAKPOINTS

#define MAX_BREAKPOINTS   8

Definition at line 21 of file esirisc.h.

◆ MAX_WATCHPOINTS

#define MAX_WATCHPOINTS   8

Definition at line 22 of file esirisc.h.

Enumeration Type Documentation

◆ esirisc_cache

Enumerator
ESIRISC_CACHE_VON_NEUMANN 
ESIRISC_CACHE_HARVARD 

Definition at line 59 of file esirisc.h.

Function Documentation

◆ esirisc_cache_arch_name()

static char* esirisc_cache_arch_name ( struct esirisc_common esirisc)
inlinestatic

Definition at line 114 of file esirisc.h.

References esirisc_common::cache_arch, and ESIRISC_CACHE_HARVARD.

Referenced by COMMAND_HANDLER(), and esirisc_get_gdb_arch().

◆ esirisc_has_cache()

static bool esirisc_has_cache ( struct esirisc_common esirisc)
inlinestatic

◆ target_to_esirisc()