Commit | Line | Data |
---|---|---|
feaee4bd AC |
1 | /* The IGEN simulator generator for GDB, the GNU Debugger. |
2 | ||
3 | Copyright 2002 Free Software Foundation, Inc. | |
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 | |
11 | the Free Software Foundation; either version 2 of the License, or | |
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 | |
20 | along with this program; if not, write to the Free Software | |
21 | Foundation, Inc., 59 Temple Place - Suite 330, | |
22 | Boston, MA 02111-1307, USA. */ | |
c906108c SS |
23 | |
24 | ||
25 | ||
26 | /* For backward compatibility only - load a standalone cache macro table */ | |
27 | ||
28 | /* Instruction unpacking: | |
29 | ||
30 | Once the instruction has been decoded, the register (and other) | |
31 | fields within the instruction need to be extracted. | |
32 | ||
33 | The table that follows determines how each field should be treated. | |
34 | Importantly it considers the case where the extracted field is to | |
35 | be used immediatly or stored in an instruction cache. | |
36 | ||
37 | <type> | |
38 | ||
39 | Indicates what to do with the cache entry. If a cache is to be | |
40 | used. SCRATCH and CACHE values are defined when a cache entry is | |
41 | being filled while CACHE and COMPUTE values are defined in the | |
42 | semantic code. | |
43 | ||
44 | Zero marks the end of the table. More importantly 1. indicates | |
45 | that the entry is valid and can be cached. 2. indicates that that | |
46 | the entry is valid but can not be cached. | |
47 | ||
48 | <field_name> | |
49 | ||
50 | The field name as given in the instruction spec. | |
51 | ||
52 | <derived_name> | |
53 | ||
54 | A new name for <field_name> once it has been extracted from the | |
55 | instruction (and possibly stored in the instruction cache). | |
56 | ||
57 | <type> | |
58 | ||
59 | String specifying the storage type for <new_name> (the extracted | |
60 | field>. | |
61 | ||
62 | <expression> | |
63 | ||
64 | Specifies how to get <new_name> from <old_name>. If null, old and | |
65 | new name had better be the same. */ | |
66 | ||
67 | ||
68 | extern cache_entry *load_cache_table | |
69 | (char *file_name); |