aboutsummaryrefslogtreecommitdiff
path: root/gdb/config/ns32k/tm-nbsd.h
diff options
context:
space:
mode:
authorJason Thorpe <thorpej@netbsd.org>2002-05-26 17:59:39 +0000
committerJason Thorpe <thorpej@netbsd.org>2002-05-26 17:59:39 +0000
commitf2c762e031983be932f3d26aa45a91aa2711fe20 (patch)
treece3ed971a4ebe487c643b09e57cd791e27d3742d /gdb/config/ns32k/tm-nbsd.h
parentd43efbe3280e3f780c19bac2b50030e82f003e78 (diff)
downloadgdb-f2c762e031983be932f3d26aa45a91aa2711fe20.zip
gdb-f2c762e031983be932f3d26aa45a91aa2711fe20.tar.gz
gdb-f2c762e031983be932f3d26aa45a91aa2711fe20.tar.bz2
* ns32k-tdep.c (ns32k_register_byte_32082,
ns32k_register_byte_32382, ns32k_register_raw_size, ns32k_register_virtual_size, ns32k_register_virtual_type): New functions. * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as ns32k_register_byte_32382. * config/ns32k/tm-umax.h: Update copyright years. (REGISTER_BYTE): Define as ns32k_register_byte_32082. (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size. (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size. (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type. (ns32k_get_enter_addr): Fix prototype.
Diffstat (limited to 'gdb/config/ns32k/tm-nbsd.h')
-rw-r--r--gdb/config/ns32k/tm-nbsd.h15
1 files changed, 2 insertions, 13 deletions
diff --git a/gdb/config/ns32k/tm-nbsd.h b/gdb/config/ns32k/tm-nbsd.h
index a3bebbe..ae29bcf 100644
--- a/gdb/config/ns32k/tm-nbsd.h
+++ b/gdb/config/ns32k/tm-nbsd.h
@@ -49,7 +49,7 @@
/* tm-umax.h assumes a 32082 fpu. We have a 32382 fpu. */
#undef REGISTER_NAME
-#define REGISTER_NAME(REGNUM) ns32k_register_name_32382(REGNUM)
+#define REGISTER_NAME(REGNUM) ns32k_register_name_32382((REGNUM))
#undef NUM_REGS
#define NUM_REGS 29
@@ -61,18 +61,7 @@
((NUM_REGS - 4) * REGISTER_RAW_SIZE(R0_REGNUM) \
+ 8 * REGISTER_RAW_SIZE(LP0_REGNUM))
-/* Index within `registers' of the first byte of the space for
- register N. */
-
-/* This is a bit yuck. The even numbered double precision floating
- point long registers occupy the same space as the even:odd numbered
- single precision floating point registers, but the extra 32381 fpu
- 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)
+#define REGISTER_BYTE(N) ns32k_register_byte_32382 ((N))
#endif /* TM_NBSD_H */