From d81bb16ac041a24abb0d108dfd6491d6b097aa03 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Fri, 20 Jun 2003 03:59:33 +0000 Subject: 2003-06-19 Andrew Cagney * ld-insn.h: Update copyright. (cache_fields): Define. (insn_table_fields): Add insn_field_6 and insn_field_7. (load_insn_table): Pass in the "cache_rules". * ld-insn.c: Update copyright. (load_insn_table): Add parameter "cache_rules". Handle "cache", "computed" and "scratch" fields. (main): Pass "cache_rules" to load_insn_table. * ld-cache.h: Update copyright. (append_cache_table): Declare. * ld-cache.c: Update copyright. (append_cache_table): New function. (load_cache_table): Call. * gen-model.c: Include "ld-cache.h". * gen-itable.c: Include "ld-cache.h". * igen.c: Move #include "ld-cache.h" to earlier. Update copyright. (main): Permit a NULL "cache_rules". Pass address of "cache_rules" to load_insn_table. * Makefile.in (tmp-ld-insn): Add "ld-cache.o". (tmp-igen): Do not include ppc-cache-rules. (gen-itable.o, gen-model.o): Add "ld-cache.h". * ppc-cache-rules: Delete file. * ppc-instructions: Add cache rules. --- sim/ppc/ld-cache.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'sim/ppc/ld-cache.h') diff --git a/sim/ppc/ld-cache.h b/sim/ppc/ld-cache.h index 72e3950..a3fd0a4 100644 --- a/sim/ppc/ld-cache.h +++ b/sim/ppc/ld-cache.h @@ -1,6 +1,6 @@ /* This file is part of the program psim. - Copyright (C) 1994-1997, Andrew Cagney + 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 @@ -79,3 +79,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); + -- cgit v1.1