mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-09 04:21:49 +08:00
Fix REGISTER_TYPE and order of register names.
This commit is contained in:
parent
d4aecb5a8a
commit
e24270fc31
@ -27,8 +27,13 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
|
||||
|
||||
#define TARGET_BYTE_ORDER BIG_ENDIAN
|
||||
|
||||
#undef TARGET_INT_BIT
|
||||
#define TARGET_INT_BIT 16
|
||||
|
||||
#undef TARGET_LONG_BIT
|
||||
#define TARGET_LONG_BIT 32
|
||||
|
||||
#undef TARGET_PTR_BIT
|
||||
#define TARGET_PTR_BIT (minimum_mode ? 16 : 32)
|
||||
|
||||
|
||||
@ -75,11 +80,9 @@ extern CORE_ADDR h8500_skip_prologue ();
|
||||
|
||||
#define INVALID_FLOAT(p, len) 0 /* Just a first guess; not checked */
|
||||
|
||||
/* Say how long (ordinary) registers are. This is a piece of bogosity
|
||||
used in push_word and a few other places; REGISTER_RAW_SIZE is the
|
||||
real way to know how big a register is. */
|
||||
/* Say how long registers are. */
|
||||
|
||||
#define REGISTER_SIZE 4
|
||||
#define REGISTER_TYPE unsigned long
|
||||
|
||||
/* Say how much memory is needed to store a copy of the register set */
|
||||
|
||||
@ -96,6 +99,8 @@ extern CORE_ADDR h8500_skip_prologue ();
|
||||
#define REGISTER_RAW_SIZE(N) h8500_register_size(N)
|
||||
int h8500_register_size PARAMS ((int regno));
|
||||
|
||||
#define REGISTER_SIZE 4
|
||||
|
||||
#define REGISTER_VIRTUAL_SIZE(N) h8500_register_size(N)
|
||||
|
||||
/* Largest value REGISTER_RAW_SIZE can have. */
|
||||
@ -117,7 +122,7 @@ struct type *h8500_register_virtual_type PARAMS ((int regno));
|
||||
|
||||
#define REGISTER_NAMES \
|
||||
{"r0", "r1", "r2", "r3", "r4", "r5", "r6", "r7", \
|
||||
"pr0", "pr1", "pr2","pr3","pr4","pr5","pr6","pr7","cp","dp","ep","tp","ccr","pc"}
|
||||
"pr0", "pr1", "pr2","pr3","pr4","pr5","pr6","pr7","cp","dp","ep","tp","sr","pc"}
|
||||
|
||||
|
||||
/* Register numbers of various important registers.
|
||||
@ -316,3 +321,4 @@ void target_write_pc PARAMS ((CORE_ADDR ));
|
||||
|
||||
#define TARGET_READ_FP() target_read_fp()
|
||||
#define TARGET_WRITE_FP(x) target_write_fp(x)
|
||||
#define GDB_TARGET_IS_H8500
|
||||
|
Loading…
Reference in New Issue
Block a user