1 /* The IGEN simulator generator for GDB, the GNU Debugger.
3 Copyright 2002-2014 Free Software Foundation, Inc.
5 Contributed by Andrew Cagney.
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/>. */
24 /* For backward compatibility only - load a standalone cache macro table */
26 /* Instruction unpacking:
28 Once the instruction has been decoded, the register (and other)
29 fields within the instruction need to be extracted.
31 The table that follows determines how each field should be treated.
32 Importantly it considers the case where the extracted field is to
33 be used immediatly or stored in an instruction cache.
37 Indicates what to do with the cache entry. If a cache is to be
38 used. SCRATCH and CACHE values are defined when a cache entry is
39 being filled while CACHE and COMPUTE values are defined in the
42 Zero marks the end of the table. More importantly 1. indicates
43 that the entry is valid and can be cached. 2. indicates that that
44 the entry is valid but can not be cached.
48 The field name as given in the instruction spec.
52 A new name for <field_name> once it has been extracted from the
53 instruction (and possibly stored in the instruction cache).
57 String specifying the storage type for <new_name> (the extracted
62 Specifies how to get <new_name> from <old_name>. If null, old and
63 new name had better be the same. */
66 extern cache_entry *load_cache_table (char *file_name);