mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-20 09:58:19 +08:00
Modified Files:
tm-mips64.h tm-mips.h Change REGISTER_VIRTUAL_TYPE to handle 64 bit register.
This commit is contained in:
@ -178,9 +178,11 @@ extern int in_sigtramp PARAMS ((CORE_ADDR, char *));
|
|||||||
/* Return the GDB type object for the "standard" data type
|
/* Return the GDB type object for the "standard" data type
|
||||||
of data in register N. */
|
of data in register N. */
|
||||||
|
|
||||||
|
#ifndef REGISTER_VIRTUAL_TYPE
|
||||||
#define REGISTER_VIRTUAL_TYPE(N) \
|
#define REGISTER_VIRTUAL_TYPE(N) \
|
||||||
(((N) >= FP0_REGNUM && (N) < FP0_REGNUM+32) \
|
(((N) >= FP0_REGNUM && (N) < FP0_REGNUM+32) \
|
||||||
? builtin_type_float : builtin_type_int) \
|
? builtin_type_float : builtin_type_int)
|
||||||
|
#endif
|
||||||
|
|
||||||
#if HOST_BYTE_ORDER == BIG_ENDIAN
|
#if HOST_BYTE_ORDER == BIG_ENDIAN
|
||||||
/* All mips targets store doubles in a register pair with the least
|
/* All mips targets store doubles in a register pair with the least
|
||||||
|
@ -23,6 +23,11 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
|
|||||||
/* Use eight byte registers. */
|
/* Use eight byte registers. */
|
||||||
#define MIPS_REGSIZE 8
|
#define MIPS_REGSIZE 8
|
||||||
|
|
||||||
|
/* define 8 byte register type */
|
||||||
|
#define REGISTER_VIRTUAL_TYPE(N) \
|
||||||
|
(((N) >= FP0_REGNUM && (N) < FP0_REGNUM+32) \
|
||||||
|
? builtin_type_double : builtin_type_long_long) \
|
||||||
|
|
||||||
/* Load double words in CALL_DUMMY. */
|
/* Load double words in CALL_DUMMY. */
|
||||||
#define OP_LDFPR 065 /* ldc1 */
|
#define OP_LDFPR 065 /* ldc1 */
|
||||||
#define OP_LDGPR 067 /* ld */
|
#define OP_LDGPR 067 /* ld */
|
||||||
|
Reference in New Issue
Block a user