diff options
Diffstat (limited to 'gdb/config')
-rw-r--r-- | gdb/config/i960/tm-i960.h | 28 | ||||
-rw-r--r-- | gdb/config/i960/tm-nindy960.h | 4 |
2 files changed, 2 insertions, 30 deletions
diff --git a/gdb/config/i960/tm-i960.h b/gdb/config/i960/tm-i960.h index ab4262035be..f47b880e8a5 100644 --- a/gdb/config/i960/tm-i960.h +++ b/gdb/config/i960/tm-i960.h @@ -156,39 +156,15 @@ extern CORE_ADDR saved_pc_after_call (); #define MAX_REGISTER_VIRTUAL_SIZE 8 -/* Nonzero if register N requires conversion from raw format to virtual - format. */ - -#define REGISTER_CONVERTIBLE(N) ((N) >= FP0_REGNUM) - #include "floatformat.h" #define TARGET_LONG_DOUBLE_FORMAT &floatformat_i960_ext -/* Convert data from raw format for register REGNUM in buffer FROM - to virtual format with type TYPE in buffer TO. */ - -#define REGISTER_CONVERT_TO_VIRTUAL(REGNUM,TYPE,FROM,TO) \ -{ \ - DOUBLEST val; \ - floatformat_to_doublest (&floatformat_i960_ext, (FROM), &val); \ - store_floating ((TO), TYPE_LENGTH (TYPE), val); \ -} - -/* Convert data from virtual format with type TYPE in buffer FROM - to raw format for register REGNUM in buffer TO. */ - -#define REGISTER_CONVERT_TO_RAW(TYPE,REGNUM,FROM,TO) \ -{ \ - DOUBLEST val = extract_floating ((FROM), TYPE_LENGTH (TYPE)); \ - floatformat_from_doublest (&floatformat_i960_ext, &val, (TO)); \ -} - /* Return the GDB type object for the "standard" data type of data in register N. */ -#define REGISTER_VIRTUAL_TYPE(N) ((N) < FP0_REGNUM ? \ - builtin_type_int : builtin_type_double) +struct type *i960_register_type (int regnum); +#define REGISTER_VIRTUAL_TYPE(N) i960_register_type (N) /* Macros for understanding function return values... */ diff --git a/gdb/config/i960/tm-nindy960.h b/gdb/config/i960/tm-nindy960.h index 1a958734a2e..e9cb99c9f4b 100644 --- a/gdb/config/i960/tm-nindy960.h +++ b/gdb/config/i960/tm-nindy960.h @@ -104,7 +104,3 @@ extern int */ #define DECR_PC_AFTER_BREAK 0 - -#undef REGISTER_CONVERT_TO_VIRTUAL -#undef REGISTER_CONVERT_TO_RAW -#undef REGISTER_CONVERTIBLE |