mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-05 21:50:21 +08:00
Make the SR, FSR and FIR registers 32 bits regardless of the target.
This commit is contained in:
@ -262,14 +262,14 @@ extern void mips_do_registers_info PARAMS ((int, int));
|
||||
#define REGISTER_BYTE(N) ((N) * MIPS_REGSIZE)
|
||||
|
||||
/* Number of bytes of storage in the actual machine representation
|
||||
for register N. On mips, all regs are the same size. */
|
||||
for register N. */
|
||||
|
||||
#define REGISTER_RAW_SIZE(N) MIPS_REGSIZE
|
||||
#define REGISTER_RAW_SIZE(N) REGISTER_VIRTUAL_SIZE(N)
|
||||
|
||||
/* Number of bytes of storage in the program's representation
|
||||
for register N. On mips, all regs are the same size. */
|
||||
for register N. */
|
||||
|
||||
#define REGISTER_VIRTUAL_SIZE(N) MIPS_REGSIZE
|
||||
#define REGISTER_VIRTUAL_SIZE(N) TYPE_LENGTH (REGISTER_VIRTUAL_TYPE (N))
|
||||
|
||||
/* Largest value REGISTER_RAW_SIZE can have. */
|
||||
|
||||
@ -279,13 +279,15 @@ extern void mips_do_registers_info PARAMS ((int, int));
|
||||
|
||||
#define MAX_REGISTER_VIRTUAL_SIZE 8
|
||||
|
||||
/* Return the GDB type object for the "standard" data type
|
||||
of data in register N. */
|
||||
/* Return the GDB type object for the "standard" data type of data in
|
||||
register N. */
|
||||
|
||||
#ifndef REGISTER_VIRTUAL_TYPE
|
||||
#define REGISTER_VIRTUAL_TYPE(N) \
|
||||
(((N) >= FP0_REGNUM && (N) < FP0_REGNUM+32) \
|
||||
? builtin_type_float : builtin_type_int)
|
||||
(((N) >= FP0_REGNUM && (N) < FP0_REGNUM+32) ? builtin_type_float \
|
||||
: ((N) == 32 /*SR*/) ? builtin_type_uint32 \
|
||||
: ((N) >= 70 && (N) <= 89) ? builtin_type_uint32 \
|
||||
: builtin_type_int)
|
||||
#endif
|
||||
|
||||
/* All mips targets store doubles in a register pair with the least
|
||||
|
@ -25,8 +25,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
|
||||
/* define 8 byte register type */
|
||||
#define REGISTER_VIRTUAL_TYPE(N) \
|
||||
(((N) >= FP0_REGNUM && (N) < FP0_REGNUM+32) \
|
||||
? builtin_type_double : builtin_type_long_long) \
|
||||
(((N) >= FP0_REGNUM && (N) < FP0_REGNUM+32) ? builtin_type_double \
|
||||
: ((N) == 32 /*SR*/) ? builtin_type_uint32 \
|
||||
: ((N) >= 70 && (N) <= 89) ? builtin_type_uint32 \
|
||||
: builtin_type_long_long)
|
||||
|
||||
/* Load double words in CALL_DUMMY. */
|
||||
#define OP_LDFPR 065 /* ldc1 */
|
||||
|
Reference in New Issue
Block a user