diff options
author | Steve Chamberlain <sac@cygnus> | 1992-01-28 03:33:04 +0000 |
---|---|---|
committer | Steve Chamberlain <sac@cygnus> | 1992-01-28 03:33:04 +0000 |
commit | fa4b55a1b125d9076dee21f26512bfb8b3e8a5fa (patch) | |
tree | 8542c65959be55623700c9a29122e258f1311d0b /gdb/tm-h8300.h | |
parent | eae1a261230cad617a84fc21ec1d2d00615b80d4 (diff) | |
download | gdb-fa4b55a1b125d9076dee21f26512bfb8b3e8a5fa.zip gdb-fa4b55a1b125d9076dee21f26512bfb8b3e8a5fa.tar.gz gdb-fa4b55a1b125d9076dee21f26512bfb8b3e8a5fa.tar.bz2 |
Development checkpoint
Diffstat (limited to 'gdb/tm-h8300.h')
-rw-r--r-- | gdb/tm-h8300.h | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/gdb/tm-h8300.h b/gdb/tm-h8300.h index fdba3ea..1409dcc 100644 --- a/gdb/tm-h8300.h +++ b/gdb/tm-h8300.h @@ -23,14 +23,8 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ /* Define the bit, byte, and word ordering of the machine. */ #define TARGET_BYTE_ORDER BIG_ENDIAN - -#define TARGET_CHAR_BIT 8 -#define TARGET_SHORT_BIT 16 +#undef TARGET_INT_BIT #define TARGET_INT_BIT 16 -#define TARGET_LONG_BIT 32 -#define TARGET_LONG_LONG_BIT 64 -#define TARGET_FLOAT_BIT 32 -#define TARGET_DOUBLE_BIT 64 /* Offset from address of function to start of its code. @@ -90,7 +84,7 @@ read_memory_integer (read_register (SP_REGNUM), 2) /* Say how long registers are. */ -#define REGISTER_TYPE unsigned short +#define REGISTER_TYPE unsigned short # define NUM_REGS 10 # define REGISTER_BYTES (10*2) @@ -122,22 +116,22 @@ read_memory_integer (read_register (SP_REGNUM), 2) /* Nonzero if register N requires conversion from raw format to virtual format. */ -#define REGISTER_CONVERTIBLE(N) 0 +#define REGISTER_CONVERTIBLE(N) 1 /* Convert data from raw format for register REGNUM to virtual format for register REGNUM. */ -#define REGISTER_CONVERT_TO_VIRTUAL(REGNUM,FROM,TO) bcopy ((FROM), (TO), 2); +/*#define REGISTER_CONVERT_TO_VIRTUAL(REGNUM,FROM,TO) */ /* Convert data from virtual format for register REGNUM to raw format for register REGNUM. */ -#define REGISTER_CONVERT_TO_RAW(REGNUM,FROM,TO) bcopy ((FROM), (TO), 2); +/*#define REGISTER_CONVERT_TO_RAW(REGNUM,FROM,TO) */ /* Return the GDB type object for the "standard" data type of data in register N. */ -#define REGISTER_VIRTUAL_TYPE(N) builtin_type_int +#define REGISTER_VIRTUAL_TYPE(N) builtin_type_unsigned_short /* Initializer for an array of names of registers. @@ -262,6 +256,14 @@ read_memory_integer (read_register (SP_REGNUM), 2) #define POP_FRAME { h8300_pop_frame (); } +#define SHORT_INT_MAX 32767 +#define SHORT_INT_MIN -32768 + +#undef longest_to_int +#define longest_to_int(x) (x & 0xffff) + -#define BEFORE_MAIN_LOOP_HOOK \ - hms_before_main_loop(); +#define REGISTER_CONVERT_TO_VIRTUAL(REGNUM,FROM,TO) \ +{ bcopy ((FROM), (TO), 2); } +#define REGISTER_CONVERT_TO_RAW(REGNUM,FROM,TO) \ +{ bcopy ((FROM), (TO), 4); } |