* ns32k-tdep.c: Update copyright years.

(ns32k_register_name_32082): New function.
(ns32k_register_name_32382): Ditto.
* config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
(REGISTER_NAME): Define as ns32k_register_name_32382.
* config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
(REGISTER_NAME): Define as ns32k_register_name_32082.
This commit is contained in:
Jason Thorpe
2002-05-26 09:29:36 +00:00
parent aa501e5cee
commit af13767302
4 changed files with 63 additions and 26 deletions

View File

@@ -47,24 +47,16 @@
/* tm-umax.h assumes a 32082 fpu. We have a 32382 fpu. */
#undef REGISTER_NAMES
#undef REGISTER_NAME
#define REGISTER_NAME(REGNUM) ns32k_register_name_32382(REGNUM)
#undef NUM_REGS
#undef REGISTER_BYTES
#undef REGISTER_BYTE
/* Initializer for an array of names of registers.
There should be NUM_REGS strings in this initializer. */
#define REGISTER_NAMES {"r0", "r1", "r2", "r3", "r4", "r5", "r6", "r7", \
"f0", "f1", "f2", "f3", "f4", "f5", "f6", "f7", \
"sp", "fp", "pc", "ps", \
"fsr", \
"l0", "l1", "l2", "l3", "l4", "l5", "l6", "l7", "xx", \
}
#define NUM_REGS 29
/* Total amount of space needed to store our copies of the machine's
register state, the array `registers'. */
#undef REGISTER_BYTES
#define REGISTER_BYTES \
((NUM_REGS - 4) * REGISTER_RAW_SIZE(R0_REGNUM) \
+ 8 * REGISTER_RAW_SIZE(LP0_REGNUM))
@@ -78,6 +70,7 @@
registers are at the end. Doing it this way is compatable for both
32081 and 32381 equiped machines. */
#undef REGISTER_BYTE
#define REGISTER_BYTE(N) (((N) < LP0_REGNUM? (N)\
: ((N) - LP0_REGNUM) & 1? (N) - 1 \
: ((N) - LP0_REGNUM + FP0_REGNUM)) * 4)