arm: Support pac_key_* register operand for MRS/MSR in Armv8.1-M Mainline
[binutils-gdb.git] / sim / common / hw-handles.h
blob6474a38061bfd7b71666bda9802edc313f74bb29
1 /* The common simulator framework for GDB, the GNU Debugger.
3 Copyright 2002-2024 Free Software Foundation, Inc.
5 Contributed by Andrew Cagney and Red Hat.
7 This file is part of GDB.
9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 3 of the License, or
12 (at your option) any later version.
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
19 You should have received a copy of the GNU General Public License
20 along with this program. If not, see <http://www.gnu.org/licenses/>. */
23 #ifndef HW_HANDLES_H
24 #define HW_HANDLES_H
27 /* Export a capability (handle) data base that maps between internal
28 data values and those given to a simulation. */
31 cell_word hw_handle_2ihandle
32 (struct hw *db,
33 struct hw_instance *instance);
35 struct hw_instance *hw_handle_ihandle2
36 (struct hw *db,
37 cell_word external);
39 void hw_handle_add_ihandle
40 (struct hw *db,
41 struct hw_instance *instance);
43 void hw_handle_remove_ihandle
44 (struct hw *db,
45 struct hw_instance *instance);
48 cell_word hw_handle_2phandle
49 (struct hw *db,
50 struct hw *hw);
52 struct hw *hw_handle_phandle2
53 (struct hw *db,
54 cell_word external);
56 void hw_handle_add_phandle
57 (struct hw *db,
58 struct hw *hw);
60 void hw_handle_remove_phandle
61 (struct hw *db,
62 struct hw *hw);
64 #endif