No empty .Rs/.Re
[netbsd-mini2440.git] / gnu / dist / gdb6 / sim / igen / gen-icache.h
blobe2eec4395788692a21da604f57904225c24d8867
1 /* The IGEN simulator generator for GDB, the GNU Debugger.
3 Copyright 2002 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 2 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, write to the Free Software
21 Foundation, Inc., 59 Temple Place - Suite 330,
22 Boston, MA 02111-1307, USA. */
25 /* Output code to manipulate the instruction cache: either create it
26 or reference it */
28 typedef enum
30 declare_variables,
31 define_variables,
32 undef_variables,
34 icache_decl_type;
36 typedef enum
38 do_not_use_icache = 0,
39 get_values_from_icache = 0x1,
40 put_values_in_icache = 0x2,
41 both_values_and_icache = 0x3,
43 icache_body_type;
45 extern void print_icache_body
46 (lf *file,
47 insn_entry * instruction,
48 opcode_bits *expanded_bits,
49 cache_entry *cache_rules,
50 icache_decl_type what_to_declare,
51 icache_body_type what_to_do, int nr_prefetched_words);
54 /* Output an instruction cache decode function */
56 extern void print_icache_declaration
57 (lf *file,
58 insn_entry * insn,
59 opcode_bits *expanded_bits,
60 insn_opcodes *opcodes, int nr_prefetched_words);
62 extern void print_icache_definition
63 (lf *file,
64 insn_entry * insn,
65 opcode_bits *expanded_bits,
66 insn_opcodes *opcodes, cache_entry *cache_rules, int nr_prefetched_words);
69 /* Output an instruction cache support function */
71 extern function_entry_handler print_icache_internal_function_declaration;
72 extern function_entry_handler print_icache_internal_function_definition;
75 /* Output the instruction cache table data structure */
77 extern void print_icache_struct
78 (lf *file, insn_table *instructions, cache_entry *cache_rules);
81 /* Output a single instructions decoder */