]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/config/mips/tm-mips64.h
import gdb-1999-07-07 post reformat
[thirdparty/binutils-gdb.git] / gdb / config / mips / tm-mips64.h
1 /* Target machine parameters for MIPS r4000
2 Copyright 1994, 1996 Free Software Foundation, Inc.
3 Contributed by Ian Lance Taylor (ian@cygnus.com)
4
5 This file is part of GDB.
6
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version.
11
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 59 Temple Place - Suite 330,
20 Boston, MA 02111-1307, USA. */
21
22 #define GDB_TARGET_IS_MIPS64 1
23
24 /* Use eight byte registers. */
25 #define MIPS_REGSIZE 8
26
27 /* define 8 byte register type */
28 #define REGISTER_VIRTUAL_TYPE(N) \
29 (((N) >= FP0_REGNUM && (N) < FP0_REGNUM+32) ? builtin_type_double \
30 : ((N) == 32 /*SR*/) ? builtin_type_uint32 \
31 : ((N) >= 70 && (N) <= 89) ? builtin_type_uint32 \
32 : builtin_type_long_long)
33
34 /* Load double words in CALL_DUMMY. */
35 #define OP_LDFPR 065 /* ldc1 */
36 #define OP_LDGPR 067 /* ld */
37
38 #if defined(MIPS_EABI) && (MIPS_EABI != 0)
39 /* Define sizes for 64-bit data types, allow specific targets to override
40 these values. Doing so may violate the strict EABI, but it's necessary
41 for some MIPS III and MIPS IV machines that want 64bit longs, but 32bit
42 pointers. */
43 #ifndef TARGET_LONG_BIT
44 #define TARGET_LONG_BIT 64
45 #endif
46 #ifndef TARGET_LONG_LONG_BIT
47 #define TARGET_LONG_LONG_BIT 64
48 #endif
49 #ifndef TARGET_PTR_BIT
50 #define TARGET_PTR_BIT 64
51 #endif
52 #endif /* MIPS_EABI */
53
54 /* Get the basic MIPS definitions. */
55 #include "tm-mips.h"