diff options
Diffstat (limited to 'gdb/or1k-tdep.h')
-rw-r--r-- | gdb/or1k-tdep.h | 43 |
1 files changed, 21 insertions, 22 deletions
diff --git a/gdb/or1k-tdep.h b/gdb/or1k-tdep.h index a119505..21be1c7 100644 --- a/gdb/or1k-tdep.h +++ b/gdb/or1k-tdep.h @@ -27,34 +27,33 @@ #include "opcodes/or1k-opc.h" /* General Purpose Registers */ -#define OR1K_ZERO_REGNUM 0 -#define OR1K_SP_REGNUM 1 -#define OR1K_FP_REGNUM 2 -#define OR1K_FIRST_ARG_REGNUM 3 -#define OR1K_LAST_ARG_REGNUM 8 -#define OR1K_LR_REGNUM 9 -#define OR1K_FIRST_SAVED_REGNUM 10 -#define OR1K_RV_REGNUM 11 -#define OR1K_PPC_REGNUM (OR1K_MAX_GPR_REGS + 0) -#define OR1K_NPC_REGNUM (OR1K_MAX_GPR_REGS + 1) -#define OR1K_SR_REGNUM (OR1K_MAX_GPR_REGS + 2) +#define OR1K_ZERO_REGNUM 0 +#define OR1K_SP_REGNUM 1 +#define OR1K_FP_REGNUM 2 +#define OR1K_FIRST_ARG_REGNUM 3 +#define OR1K_LAST_ARG_REGNUM 8 +#define OR1K_LR_REGNUM 9 +#define OR1K_FIRST_SAVED_REGNUM 10 +#define OR1K_RV_REGNUM 11 +#define OR1K_PPC_REGNUM (OR1K_MAX_GPR_REGS + 0) +#define OR1K_NPC_REGNUM (OR1K_MAX_GPR_REGS + 1) +#define OR1K_SR_REGNUM (OR1K_MAX_GPR_REGS + 2) /* Properties of the architecture. GDB mapping of registers is all the GPRs and SPRs followed by the PPC, NPC and SR at the end. Red zone is the area past the end of the stack reserved for exception handlers etc. */ -#define OR1K_MAX_GPR_REGS 32 -#define OR1K_NUM_PSEUDO_REGS 0 -#define OR1K_NUM_REGS (OR1K_MAX_GPR_REGS + 3) -#define OR1K_STACK_ALIGN 4 -#define OR1K_INSTLEN 4 -#define OR1K_INSTBITLEN (OR1K_INSTLEN * 8) -#define OR1K_NUM_TAP_RECORDS 8 -#define OR1K_FRAME_RED_ZONE_SIZE 2536 +#define OR1K_MAX_GPR_REGS 32 +#define OR1K_NUM_PSEUDO_REGS 0 +#define OR1K_NUM_REGS (OR1K_MAX_GPR_REGS + 3) +#define OR1K_STACK_ALIGN 4 +#define OR1K_INSTLEN 4 +#define OR1K_INSTBITLEN (OR1K_INSTLEN * 8) +#define OR1K_NUM_TAP_RECORDS 8 +#define OR1K_FRAME_RED_ZONE_SIZE 2536 /* Single step based on where the current instruction will take us. */ -extern std::vector<CORE_ADDR> or1k_software_single_step - (struct regcache *regcache); - +extern std::vector<CORE_ADDR> +or1k_software_single_step (struct regcache *regcache); #endif /* OR1K_TDEP_H */ |