[PATCH 7/57][Arm][GAS] Add support for MVE instructions: vstr/vldr
[binutils-gdb.git] / sim / ppc / cap.h
blob86afc576645fb5460ff51717806c2ef2d6e22330
1 /* This file is part of the program psim.
3 Copyright (C) 1994-1995,1997, Andrew Cagney <cagney@highland.com.au>
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 3 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, see <http://www.gnu.org/licenses/>.
21 /* Export a capability data base that maps between internal data
22 values and those given to a simulation */
24 #ifndef _CAP_H_
25 #define _CAP_H_
27 #include "basics.h"
29 typedef struct _cap cap;
31 INLINE_CAP\
32 (cap *) cap_create
33 (const char *name);
35 INLINE_CAP\
36 (void) cap_init
37 (cap *db);
39 INLINE_CAP\
40 (signed_cell) cap_external
41 (cap *db,
42 void *internal);
44 INLINE_CAP\
45 (void *) cap_internal
46 (cap *db,
47 signed_cell external);
49 INLINE_CAP\
50 (void) cap_add
51 (cap *db,
52 void *internal);
54 INLINE_CAP\
55 (void) cap_remove
56 (cap *db,
57 void *internal);
59 #endif