sim: ppc: netbsd: Sync errno codes with NetBSD 9.99.49
[deliverable/binutils-gdb.git] / sim / ppc / ld-cache.h
index 06d05ffac6f3143c080661bf139999fa11e46876..9662bd1795fff6323cd7ed2834a373257818ff9b 100644 (file)
@@ -1,10 +1,10 @@
 /*  This file is part of the program psim.
 
-    Copyright (C) 1994,1995,1996, Andrew Cagney <cagney@highland.com.au>
+    Copyright 1994, 1995, 1996, 1997, 2003, Andrew Cagney
 
     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
-    the Free Software Foundation; either version 2 of the License, or
+    the Free Software Foundation; either version 3 of the License, or
     (at your option) any later version.
 
     This program is distributed in the hope that it will be useful,
@@ -13,8 +13,7 @@
     GNU General Public License for more details.
  
     You should have received a copy of the GNU General Public License
-    along with this program; if not, write to the Free Software
-    Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+    along with this program; if not, see <http://www.gnu.org/licenses/>.
  
     */
 
 
    The table that follows determines how each field should be treated.
    Importantly it considers the case where the extracted field is to
-   be used immediatly or stored in an instruction cache.
+   be used immediately or stored in an instruction cache.
 
-   <valid>
+   <type>
+
+   Indicates what to do with the cache entry.  If a cache is to be
+   used.  SCRATCH and CACHE values are defined when a cache entry is
+   being filled while CACHE and COMPUTE values are defined in the
+   semantic code.
 
    Zero marks the end of the table.  More importantly 1. indicates
    that the entry is valid and can be cached. 2. indicates that that
    the entry is valid but can not be cached.
 
-   <old_name>
+   <field_name>
 
    The field name as given in the instruction spec.
 
-   <new_name>
+   <derived_name>
 
-   A name for <old_name> once it has been extracted from the
-   instructioin (and possibly stored in the instruction cache).
+   A new name for <field_name> once it has been extracted from the
+   instruction (and possibly stored in the instruction cache).
 
    <type>
 
@@ -54,6 +58,7 @@
 
 
 typedef enum {
+  scratch_value,
   cache_value,
   compute_value,
 } cache_rule_type;
@@ -61,8 +66,8 @@ typedef enum {
 typedef struct _cache_table cache_table;
 struct _cache_table {
   cache_rule_type type;
-  char *old_name;
-  char *new_name;
+  char *field_name;
+  char *derived_name;
   char *type_def;
   char *expression;
   table_entry *file_entry;
@@ -73,3 +78,13 @@ struct _cache_table {
 extern cache_table *load_cache_table
 (char *file_name,
  int hi_bit_nr);
+
+extern void append_cache_rule
+(cache_table **table,
+ char *type,
+ char *field_name,
+ char *derived_name,
+ char *type_def,
+ char *expression,
+ table_entry *file_entry);
+
This page took 0.031086 seconds and 4 git commands to generate.