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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [sim/] [igen/] [gen-icache.h] - Blame information for rev 578

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

Line No. Rev Author Line
1 578 markom
/*  This file is part of the program psim.
2
 
3
    Copyright (C) 1994-1997, Andrew Cagney <cagney@highland.com.au>
4
 
5
    This program is free software; you can redistribute it and/or modify
6
    it under the terms of the GNU General Public License as published by
7
    the Free Software Foundation; either version 2 of the License, or
8
    (at your option) any later version.
9
 
10
    This program is distributed in the hope that it will be useful,
11
    but WITHOUT ANY WARRANTY; without even the implied warranty of
12
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
    GNU General Public License for more details.
14
 
15
    You should have received a copy of the GNU General Public License
16
    along with this program; if not, write to the Free Software
17
    Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18
 
19
    */
20
 
21
 
22
 
23
/* Output code to manipulate the instruction cache: either create it
24
   or reference it */
25
 
26
typedef enum {
27
  declare_variables,
28
  define_variables,
29
  undef_variables,
30
} icache_decl_type;
31
 
32
typedef enum {
33
  do_not_use_icache = 0,
34
  get_values_from_icache = 0x1,
35
  put_values_in_icache = 0x2,
36
  both_values_and_icache = 0x3,
37
} icache_body_type;
38
 
39
extern void print_icache_body
40
(lf *file,
41
 insn_entry *instruction,
42
 opcode_bits *expanded_bits,
43
 cache_entry *cache_rules,
44
 icache_decl_type what_to_declare,
45
 icache_body_type what_to_do,
46
 int nr_prefetched_words);
47
 
48
 
49
/* Output an instruction cache decode function */
50
 
51
extern void print_icache_declaration
52
(lf *file,
53
 insn_entry *insn,
54
 opcode_bits *expanded_bits,
55
 insn_opcodes *opcodes,
56
 int nr_prefetched_words);
57
 
58
extern void print_icache_definition
59
(lf *file,
60
 insn_entry *insn,
61
 opcode_bits *expanded_bits,
62
 insn_opcodes *opcodes,
63
 cache_entry *cache_rules,
64
 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,
77
 insn_table *instructions,
78
 cache_entry *cache_rules);
79
 
80
 
81
/* 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.