* mips64obsd-tdep.c (floatformats_mips64_quad): New define.

(mips64obsd_init_abi): Set long_double_bit and long_double_format.
This commit is contained in:
Mark Kettenis 2010-12-12 18:23:25 +00:00
parent 7a58cce85c
commit 89fa5cc879
2 changed files with 13 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2010-12-12 Mark Kettenis <kettenis@xian.sibelius.xs4all.nl>
* mips64obsd-tdep.c (floatformats_mips64_quad): New define.
(mips64obsd_init_abi): Set long_double_bit and long_double_format.
2010-12-12 Mark Kettenis <kettenis@gnu.org>
* sparc-tdep.c: Fix typo in comment.

View file

@ -18,6 +18,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include "defs.h"
#include "gdbtypes.h"
#include "osabi.h"
#include "regcache.h"
#include "regset.h"
@ -30,6 +31,10 @@
#include "mips-tdep.h"
#include "solib-svr4.h"
/* The MIPS64 Floating-Point Quad-Precision format is similar to
big-endian IA-64 Quad-Precision format. */
#define floatformats_mips64_quad floatformats_ia64_quad
#define MIPS64OBSD_NUM_REGS 73
/* Core file support. */
@ -147,6 +152,9 @@ mips64obsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
tramp_frame_prepend_unwinder (gdbarch, &mips64obsd_sigframe);
set_gdbarch_long_double_bit (gdbarch, 128);
set_gdbarch_long_double_format (gdbarch, floatformats_mips64_quad);
/* OpenBSD/mips64 has SVR4-style shared libraries. */
set_solib_svr4_fetch_link_map_offsets
(gdbarch, svr4_lp64_fetch_link_map_offsets);