GDB (xrefs)

Classes | Macros | Variables
/tmp/gdb-8.1/gdb/nios2-tdep.h File Reference
`#include "opcode/nios2.h"`

Go to the source code of this file.

## Classes
struct | gdbarch_tdep

## Macros
#define | NIOS2_Z_REGNUM 0 /* Zero */
#define | NIOS2_R2_REGNUM 2 /* used for return value */
#define | NIOS2_R3_REGNUM 3 /* used for return value */
#define | NIOS2_R4_REGNUM 4
#define | NIOS2_R7_REGNUM 7
#define | NIOS2_GP_REGNUM 26 /* Global Pointer */
#define | NIOS2_SP_REGNUM 27 /* Stack Pointer */
#define | NIOS2_FP_REGNUM 28 /* Frame Pointer */
#define | NIOS2_EA_REGNUM 29 /* Exception address */
#define | NIOS2_BA_REGNUM 30 /* Breakpoint return address */
#define | NIOS2_RA_REGNUM 31 /* Return address */
#define | NIOS2_PC_REGNUM 32
#define | NIOS2_STATUS_REGNUM 33
#define | NIOS2_ESTATUS_REGNUM 34
#define | NIOS2_BSTATUS_REGNUM 35
#define | NIOS2_IENABLE_REGNUM 36
#define | NIOS2_IPENDING_REGNUM 37
#define | NIOS2_CPUID_REGNUM 38
#define | NIOS2_EXCEPTION_REGNUM 40
#define | NIOS2_PTEADDR_REGNUM 41
#define | NIOS2_TLBACC_REGNUM 42
#define | NIOS2_TLBMISC_REGNUM 43
#define | NIOS2_ECCINJ_REGNUM 44
#define | NIOS2_BADADDR_REGNUM 45
#define | NIOS2_CONFIG_REGNUM 46
#define | NIOS2_MPUBASE_REGNUM 47
#define | NIOS2_MPUACC_REGNUM 48
#define | NIOS2_FIRST_ARGREG NIOS2_R4_REGNUM
#define | NIOS2_LAST_ARGREG NIOS2_R7_REGNUM
#define | NIOS2_NUM_REGS 49
#define | NIOS2_OPCODE_SIZE 4
#define | NIOS2_CDX_OPCODE_SIZE 2

## Variables
struct target_desc * | tdesc_nios2_linux
struct target_desc * | tdesc_nios2

## Macro Definition Documentation

## ◆ NIOS2_BA_REGNUM

#define NIOS2_BA_REGNUM 30 /* Breakpoint return address */

Definition at line 37 of file nios2-tdep.h.

Referenced by nios2_match_jmpr().

## ◆ NIOS2_BADADDR_REGNUM

#define NIOS2_BADADDR_REGNUM 45

Definition at line 53 of file nios2-tdep.h.

## ◆ NIOS2_BSTATUS_REGNUM

#define NIOS2_BSTATUS_REGNUM 35

Definition at line 44 of file nios2-tdep.h.

## ◆ NIOS2_CDX_OPCODE_SIZE

#define NIOS2_CDX_OPCODE_SIZE 2

Definition at line 67 of file nios2-tdep.h.

Referenced by nios2_breakpoint_kind_from_pc(), nios2_fetch_insn(), and nios2_sw_breakpoint_from_kind().

## ◆ NIOS2_CONFIG_REGNUM

#define NIOS2_CONFIG_REGNUM 46

Definition at line 54 of file nios2-tdep.h.

## ◆ NIOS2_CPUID_REGNUM

#define NIOS2_CPUID_REGNUM 38

Definition at line 47 of file nios2-tdep.h.

## ◆ NIOS2_EA_REGNUM

#define NIOS2_EA_REGNUM 29 /* Exception address */

Definition at line 36 of file nios2-tdep.h.

Referenced by nios2_analyze_prologue(), and nios2_match_jmpr().

## ◆ NIOS2_ECCINJ_REGNUM

#define NIOS2_ECCINJ_REGNUM 44

Definition at line 52 of file nios2-tdep.h.

## ◆ NIOS2_ESTATUS_REGNUM

#define NIOS2_ESTATUS_REGNUM 34

Definition at line 43 of file nios2-tdep.h.

Referenced by nios2_analyze_prologue().

## ◆ NIOS2_EXCEPTION_REGNUM

#define NIOS2_EXCEPTION_REGNUM 40

Definition at line 48 of file nios2-tdep.h.

## ◆ NIOS2_FIRST_ARGREG

#define NIOS2_FIRST_ARGREG NIOS2_R4_REGNUM

Definition at line 59 of file nios2-tdep.h.

Referenced by nios2_push_dummy_call().

## ◆ NIOS2_FP_REGNUM

#define NIOS2_FP_REGNUM 28 /* Frame Pointer */

Definition at line 35 of file nios2-tdep.h.

Referenced by nios2_analyze_prologue(), and nios2_linux_rt_sigreturn_init().

## ◆ NIOS2_GP_REGNUM

#define NIOS2_GP_REGNUM 26 /* Global Pointer */

Definition at line 33 of file nios2-tdep.h.

Referenced by nios2_analyze_prologue(), and nios2_linux_rt_sigreturn_init().

## ◆ NIOS2_IENABLE_REGNUM

#define NIOS2_IENABLE_REGNUM 36

Definition at line 45 of file nios2-tdep.h.

## ◆ NIOS2_IPENDING_REGNUM

#define NIOS2_IPENDING_REGNUM 37

Definition at line 46 of file nios2-tdep.h.

## ◆ NIOS2_LAST_ARGREG

#define NIOS2_LAST_ARGREG NIOS2_R7_REGNUM

Definition at line 60 of file nios2-tdep.h.

Referenced by nios2_push_dummy_call().

## ◆ NIOS2_MPUACC_REGNUM

#define NIOS2_MPUACC_REGNUM 48

Definition at line 56 of file nios2-tdep.h.

Referenced by nios2_collect_gregset(), and nios2_supply_gregset().

## ◆ NIOS2_MPUBASE_REGNUM

#define NIOS2_MPUBASE_REGNUM 47

Definition at line 55 of file nios2-tdep.h.

## ◆ NIOS2_NUM_REGS

#define NIOS2_NUM_REGS 49

Definition at line 63 of file nios2-tdep.h.

Referenced by nios2_analyze_prologue(), nios2_dwarf_reg_to_regnum(), nios2_frame_prev_register(), nios2_gdbarch_init(), nios2_register_name(), and nios2_setup_default().

## ◆ NIOS2_OPCODE_SIZE

#define NIOS2_OPCODE_SIZE 4

Definition at line 66 of file nios2-tdep.h.

Referenced by nios2_breakpoint_kind_from_pc(), nios2_fetch_insn(), nios2_get_next_pc(), and nios2_in_epilogue_p().

## ◆ NIOS2_PC_REGNUM

#define NIOS2_PC_REGNUM 32

Definition at line 39 of file nios2-tdep.h.

Referenced by nios2_frame_prev_register(), nios2_gdbarch_init(), nios2_linux_rt_sigreturn_init(), nios2_register_type(), and nios2_unwind_pc().

## ◆ NIOS2_PTEADDR_REGNUM

#define NIOS2_PTEADDR_REGNUM 41

Definition at line 49 of file nios2-tdep.h.

## ◆ NIOS2_R2_REGNUM

#define NIOS2_R2_REGNUM 2 /* used for return value */

Definition at line 28 of file nios2-tdep.h.

Referenced by nios2_extract_return_value(), nios2_linux_syscall_next_pc(), and nios2_store_return_value().

## ◆ NIOS2_R3_REGNUM

#define NIOS2_R3_REGNUM 3 /* used for return value */

Definition at line 29 of file nios2-tdep.h.

Referenced by nios2_extract_return_value(), and nios2_store_return_value().

## ◆ NIOS2_R4_REGNUM

#define NIOS2_R4_REGNUM 4

Definition at line 31 of file nios2-tdep.h.

Referenced by nios2_get_longjmp_target().

## ◆ NIOS2_R7_REGNUM

#define NIOS2_R7_REGNUM 7

Definition at line 32 of file nios2-tdep.h.

## ◆ NIOS2_RA_REGNUM

#define NIOS2_RA_REGNUM 31 /* Return address */

Definition at line 38 of file nios2-tdep.h.

Referenced by nios2_analyze_prologue(), nios2_get_next_pc(), nios2_init_cache(), nios2_linux_rt_sigreturn_init(), nios2_match_jmpr(), nios2_push_dummy_call(), and nios2_stub_frame_cache().

## ◆ NIOS2_SP_REGNUM

#define NIOS2_SP_REGNUM 27 /* Stack Pointer */

Definition at line 34 of file nios2-tdep.h.

Referenced by nios2_analyze_prologue(), nios2_dummy_id(), nios2_frame_prev_register(), nios2_gdbarch_init(), nios2_in_epilogue_p(), nios2_linux_rt_sigreturn_init(), nios2_match_addi(), nios2_match_ldw(), nios2_match_ldwm(), nios2_match_stw(), nios2_match_stwm(), nios2_push_dummy_call(), nios2_register_type(), nios2_stub_frame_cache(), and nios2_unwind_sp().

## ◆ NIOS2_STATUS_REGNUM

#define NIOS2_STATUS_REGNUM 33

Definition at line 42 of file nios2-tdep.h.

Referenced by nios2_analyze_prologue().

## ◆ NIOS2_TLBACC_REGNUM

#define NIOS2_TLBACC_REGNUM 42

Definition at line 50 of file nios2-tdep.h.

## ◆ NIOS2_TLBMISC_REGNUM

#define NIOS2_TLBMISC_REGNUM 43

Definition at line 51 of file nios2-tdep.h.

## ◆ NIOS2_Z_REGNUM

#define NIOS2_Z_REGNUM 0 /* Zero */

Definition at line 27 of file nios2-tdep.h.

Referenced by nios2_analyze_prologue(), nios2_collect_gregset(), nios2_frame_prev_register(), nios2_match_branch(), and nios2_supply_gregset().

## Variable Documentation

## ◆ tdesc_nios2

struct target_desc* tdesc_nios2

Definition at line 8 of file nios2.c.

Referenced by initialize_tdesc_nios2(), and nios2_gdbarch_init().

## ◆ tdesc_nios2_linux

struct target_desc* tdesc_nios2_linux