cb71b6bdda1297195161c481673e5ef44fb22fc6
1 /* Types for Cpu tools GENerated simulators.
2 Copyright (C) 1996-2021 Free Software Foundation, Inc.
3 Contributed by Cygnus Support.
5 This file is part of GDB, the GNU debugger.
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 3 of the License, or
10 (at your option) any later version.
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.
17 You should have received a copy of the GNU General Public License
18 along with this program. If not, see <http://www.gnu.org/licenses/>. */
20 /* This file is not included with cgen-sim.h as it defines types
21 needed by sim-base.h. */
26 /* Miscellaneous cgen configury defined here as this file gets
27 included soon enough. */
29 /* Indicate we support --{profile,trace}-{range,function}. */
30 #undef SIM_HAVE_ADDR_RANGE
31 #define SIM_HAVE_ADDR_RANGE
41 /* Common mode types. */
42 /* ??? Target specific modes. */
43 typedef enum mode_type
{
45 MODE_QI
, MODE_HI
, MODE_SI
, MODE_DI
,
46 MODE_UQI
, MODE_UHI
, MODE_USI
, MODE_UDI
,
47 MODE_SF
, MODE_DF
, MODE_XF
, MODE_TF
,
48 MODE_TARGET_MAX
/* = MODE_TF? */,
49 /* These are host modes. */
50 MODE_INT
, MODE_UINT
, MODE_PTR
, /*??? MODE_ADDR, MODE_IADDR,*/
54 #define MAX_TARGET_MODES ((int) MODE_TARGET_MAX)
55 #define MAX_MODES ((int) MODE_MAX)
57 extern const char * const cgen_mode_names
[];
58 #define MODE_NAME(m) (cgen_mode_names[m])
61 typedef unsigned char BI
;
65 typedef unsigned8 UQI
;
66 typedef unsigned16 UHI
;
67 typedef unsigned32 USI
;
70 typedef unsigned64 UDI
;
71 #define GETLODI(di) ((SI) (di))
72 #define GETHIDI(di) ((SI) ((UDI) (di) >> 32))
73 #define SETLODI(di, val) ((di) = (((di) & 0xffffffff00000000LL) | (val)))
74 #define SETHIDI(di, val) ((di) = (((di) & 0xffffffffLL) | (((DI) (val)) << 32)))
75 #define MAKEDI(hi, lo) ((((DI) (SI) (hi)) << 32) | ((UDI) (USI) (lo)))
77 /* These are used to record extracted raw data from an instruction, among other
78 things. It must be a host data type, and not a target one. */
80 typedef unsigned int UINT
;
82 typedef unsigned_address ADDR
; /* FIXME: wip*/
83 typedef unsigned_address IADDR
; /* FIXME: wip*/
85 /* fp types are in cgen-fpu.h */
87 #endif /* CGEN_TYPES_H */
This page took 0.030719 seconds and 3 git commands to generate.