diff options
Diffstat (limited to 'gdb/config/mips')
-rw-r--r-- | gdb/config/mips/tm-irix5.h | 6 | ||||
-rw-r--r-- | gdb/config/mips/tm-irix6.h | 6 | ||||
-rw-r--r-- | gdb/config/mips/tm-mips.h | 8 | ||||
-rw-r--r-- | gdb/config/mips/tm-mips64.h | 3 |
4 files changed, 7 insertions, 16 deletions
diff --git a/gdb/config/mips/tm-irix5.h b/gdb/config/mips/tm-irix5.h index 61e809d..d7e1938 100644 --- a/gdb/config/mips/tm-irix5.h +++ b/gdb/config/mips/tm-irix5.h @@ -78,11 +78,11 @@ #undef MIPS_REGISTER_BYTE #define MIPS_REGISTER_BYTE(N) \ - (((N) < FP0_REGNUM) ? (N) * MIPS_REGSIZE : \ + (((N) < FP0_REGNUM) ? (N) * mips_regsize (current_gdbarch) : \ ((N) < FP0_REGNUM + 32) ? \ - FP0_REGNUM * MIPS_REGSIZE + \ + FP0_REGNUM * mips_regsize (current_gdbarch) + \ ((N) - FP0_REGNUM) * sizeof(double) : \ - 32 * sizeof(double) + ((N) - 32) * MIPS_REGSIZE) + 32 * sizeof(double) + ((N) - 32) * mips_regsize (current_gdbarch)) #undef MIPS_REGISTER_TYPE #define MIPS_REGISTER_TYPE(N) \ diff --git a/gdb/config/mips/tm-irix6.h b/gdb/config/mips/tm-irix6.h index 0d4fc0c..4d63001 100644 --- a/gdb/config/mips/tm-irix6.h +++ b/gdb/config/mips/tm-irix6.h @@ -64,11 +64,11 @@ #undef MIPS_REGISTER_BYTE #define MIPS_REGISTER_BYTE(N) \ - (((N) < FP0_REGNUM) ? (N) * MIPS_REGSIZE : \ + (((N) < FP0_REGNUM) ? (N) * mips_regsize (current_gdbarch) : \ ((N) < FP0_REGNUM + 32) ? \ - FP0_REGNUM * MIPS_REGSIZE + \ + FP0_REGNUM * mips_regsize (current_gdbarch) + \ ((N) - FP0_REGNUM) * sizeof(double) : \ - 32 * sizeof(double) + ((N) - 32) * MIPS_REGSIZE) + 32 * sizeof(double) + ((N) - 32) * mips_regsize (current_gdbarch)) /* The signal handler trampoline is called _sigtramp. */ #undef IN_SIGTRAMP diff --git a/gdb/config/mips/tm-mips.h b/gdb/config/mips/tm-mips.h index 59aeb5d..35aa888 100644 --- a/gdb/config/mips/tm-mips.h +++ b/gdb/config/mips/tm-mips.h @@ -45,12 +45,6 @@ extern int mips_step_skips_delay (CORE_ADDR); #define STEP_SKIPS_DELAY_P (1) #define STEP_SKIPS_DELAY(pc) (mips_step_skips_delay (pc)) -/* The size of a register. This is predefined in tm-mips64.h. */ - -#ifndef MIPS_REGSIZE -#define MIPS_REGSIZE 4 -#endif - /* Initializer for an array of names for registers 32 and above. There should be NUM_REGS-32 strings in this initializer. */ @@ -98,7 +92,7 @@ extern int mips_step_skips_delay (CORE_ADDR); /* Index within `registers' of the first byte of the space for register N. */ -#define MIPS_REGISTER_BYTE(N) ((N) * MIPS_REGSIZE) +#define MIPS_REGISTER_BYTE(N) ((N) * mips_regsize (current_gdbarch)) /* Return the GDB type object for the "standard" data type of data in register N. */ diff --git a/gdb/config/mips/tm-mips64.h b/gdb/config/mips/tm-mips64.h index 2547e86..bce76cf 100644 --- a/gdb/config/mips/tm-mips64.h +++ b/gdb/config/mips/tm-mips64.h @@ -19,9 +19,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -/* Use eight byte registers. */ -#define MIPS_REGSIZE 8 - /* define 8 byte register type */ #define MIPS_REGISTER_TYPE(N) \ (((N) >= FP0_REGNUM && (N) < FP0_REGNUM+32) ? builtin_type_double \ |