diff options
author | Andrew Cagney <cagney@redhat.com> | 2002-11-22 04:20:49 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2002-11-22 04:20:49 +0000 |
commit | 4e0bf4c4d00096ac436378edaf7718dafec9ff82 (patch) | |
tree | 9a80850d7051a761dee6c6dd1aed8df337a1f92c /sim/igen/ld-cache.c | |
parent | feaee4bdbb06466822e886f5d1d30b9f1e04d985 (diff) | |
download | fsf-binutils-gdb-4e0bf4c4d00096ac436378edaf7718dafec9ff82.zip fsf-binutils-gdb-4e0bf4c4d00096ac436378edaf7718dafec9ff82.tar.gz fsf-binutils-gdb-4e0bf4c4d00096ac436378edaf7718dafec9ff82.tar.bz2 |
2002-11-21 Andrew Cagney <ac131313@redhat.com>
* filter.c: Re-indent.
* filter.h, filter_host.h, gen-engine.c, gen-engine.h: Ditto.
* gen-icache.c, gen-icache.h, gen-idecode.c: Ditto.
* gen-idecode.h, gen-itable.c, gen-itable.h: Ditto.
* gen-model.c, gen-model.h, gen-semantics.c: Ditto.
* gen-semantics.h, gen-support.c, gen-support.h: Ditto.
* gen.c, gen.h, igen.c, igen.h, ld-cache.c, ld-cache.h: Ditto.
* ld-decode.c, ld-decode.h, ld-insn.c, ld-insn.h, lf.c: Ditto.
* lf.h, misc.c, misc.h, table.c, table.h: Ditto.
Diffstat (limited to 'sim/igen/ld-cache.c')
-rw-r--r-- | sim/igen/ld-cache.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sim/igen/ld-cache.c b/sim/igen/ld-cache.c index 3fa75b7..c46aa9a 100644 --- a/sim/igen/ld-cache.c +++ b/sim/igen/ld-cache.c @@ -37,7 +37,8 @@ #endif -enum { +enum +{ ca_type, ca_field_name, ca_derived_name, @@ -47,10 +48,10 @@ enum { }; static const name_map cache_type_map[] = { - { "cache", cache_value }, - { "compute", compute_value }, - { "scratch", scratch_value }, - { NULL, 0 }, + {"cache", cache_value}, + {"compute", compute_value}, + {"scratch", scratch_value}, + {NULL, 0}, }; @@ -67,8 +68,7 @@ load_cache_table (char *file_name) new_rule->line = entry->line; new_rule->entry_type = name2i (entry->field[ca_type], cache_type_map); new_rule->name = entry->field[ca_derived_name]; - filter_parse (&new_rule->original_fields, - entry->field[ca_field_name]); + filter_parse (&new_rule->original_fields, entry->field[ca_field_name]); new_rule->type = entry->field[ca_type_def]; /* expression is the concatenation of the remaining fields */ if (entry->nr_fields > ca_expression) @@ -101,7 +101,7 @@ load_cache_table (char *file_name) igen_options options; int -main(int argc, char **argv) +main (int argc, char **argv) { cache_entry *rules = NULL; lf *l; |