OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-6.8/] [sim/] [igen/] [gen-icache.h] - Blame information for rev 297

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 24 jeremybenn
/* The IGEN simulator generator for GDB, the GNU Debugger.
2
 
3
   Copyright 2002, 2007, 2008 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 3 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, see <http://www.gnu.org/licenses/>.  */
21
 
22
 
23
/* Output code to manipulate the instruction cache: either create it
24
   or reference it */
25
 
26
typedef enum
27
{
28
  declare_variables,
29
  define_variables,
30
  undef_variables,
31
}
32
icache_decl_type;
33
 
34
typedef enum
35
{
36
  do_not_use_icache = 0,
37
  get_values_from_icache = 0x1,
38
  put_values_in_icache = 0x2,
39
  both_values_and_icache = 0x3,
40
}
41
icache_body_type;
42
 
43
extern void print_icache_body
44
  (lf *file,
45
   insn_entry * instruction,
46
   opcode_bits *expanded_bits,
47
   cache_entry *cache_rules,
48
   icache_decl_type what_to_declare,
49
   icache_body_type what_to_do, int nr_prefetched_words);
50
 
51
 
52
/* Output an instruction cache decode function */
53
 
54
extern void print_icache_declaration
55
  (lf *file,
56
   insn_entry * insn,
57
   opcode_bits *expanded_bits,
58
   insn_opcodes *opcodes, int nr_prefetched_words);
59
 
60
extern void print_icache_definition
61
  (lf *file,
62
   insn_entry * insn,
63
   opcode_bits *expanded_bits,
64
   insn_opcodes *opcodes, cache_entry *cache_rules, int nr_prefetched_words);
65
 
66
 
67
/* Output an instruction cache support function */
68
 
69
extern function_entry_handler print_icache_internal_function_declaration;
70
extern function_entry_handler print_icache_internal_function_definition;
71
 
72
 
73
/* Output the instruction cache table data structure */
74
 
75
extern void print_icache_struct
76
  (lf *file, insn_table *instructions, cache_entry *cache_rules);
77
 
78
 
79
/* Output a single instructions decoder */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.