]>
Commit | Line | Data |
---|---|---|
feaee4bd AC |
1 | /* The IGEN simulator generator for GDB, the GNU Debugger. |
2 | ||
213516ef | 3 | Copyright 2002-2023 Free Software Foundation, Inc. |
feaee4bd AC |
4 | |
5 | Contributed by Andrew Cagney. | |
6 | ||
7 | This file is part of GDB. | |
8 | ||
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 | |
4744ac1b | 11 | the Free Software Foundation; either version 3 of the License, or |
feaee4bd AC |
12 | (at your option) any later version. |
13 | ||
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. | |
18 | ||
19 | You should have received a copy of the GNU General Public License | |
4744ac1b | 20 | along with this program. If not, see <http://www.gnu.org/licenses/>. */ |
c906108c | 21 | |
339e44f8 MF |
22 | #ifndef IGEN_LD_CACHE_H |
23 | #define IGEN_LD_CACHE_H | |
c906108c SS |
24 | |
25 | /* For backward compatibility only - load a standalone cache macro table */ | |
26 | ||
27 | /* Instruction unpacking: | |
28 | ||
29 | Once the instruction has been decoded, the register (and other) | |
30 | fields within the instruction need to be extracted. | |
31 | ||
32 | The table that follows determines how each field should be treated. | |
33 | Importantly it considers the case where the extracted field is to | |
8eec6289 | 34 | be used immediately or stored in an instruction cache. |
c906108c SS |
35 | |
36 | <type> | |
37 | ||
38 | Indicates what to do with the cache entry. If a cache is to be | |
39 | used. SCRATCH and CACHE values are defined when a cache entry is | |
40 | being filled while CACHE and COMPUTE values are defined in the | |
41 | semantic code. | |
42 | ||
43 | Zero marks the end of the table. More importantly 1. indicates | |
44 | that the entry is valid and can be cached. 2. indicates that that | |
45 | the entry is valid but can not be cached. | |
46 | ||
47 | <field_name> | |
48 | ||
49 | The field name as given in the instruction spec. | |
50 | ||
51 | <derived_name> | |
52 | ||
53 | A new name for <field_name> once it has been extracted from the | |
54 | instruction (and possibly stored in the instruction cache). | |
55 | ||
56 | <type> | |
57 | ||
58 | String specifying the storage type for <new_name> (the extracted | |
59 | field>. | |
60 | ||
61 | <expression> | |
62 | ||
63 | Specifies how to get <new_name> from <old_name>. If null, old and | |
64 | new name had better be the same. */ | |
65 | ||
66 | ||
fa654e74 | 67 | extern cache_entry *load_cache_table (const char *file_name); |
339e44f8 MF |
68 | |
69 | #endif /* IGEN_LD_CACHE_H */ |