diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-10-31 20:40:01 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-10-31 22:34:02 -0400 |
commit | fc3579da2ea6b2db27ac3003f818abd7786b9b30 (patch) | |
tree | 2b6847277de08e6096435b14dec4ea565cb21fbb /sim/ppc/ld-cache.c | |
parent | e7360783aebee8e64402eac7a12163c0d2bb15b6 (diff) | |
download | gdb-fc3579da2ea6b2db27ac3003f818abd7786b9b30.zip gdb-fc3579da2ea6b2db27ac3003f818abd7786b9b30.tar.gz gdb-fc3579da2ea6b2db27ac3003f818abd7786b9b30.tar.bz2 |
sim: ppc: constify strings in igen tooling
Diffstat (limited to 'sim/ppc/ld-cache.c')
-rw-r--r-- | sim/ppc/ld-cache.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sim/ppc/ld-cache.c b/sim/ppc/ld-cache.c index 611ac7a..f57f7db 100644 --- a/sim/ppc/ld-cache.c +++ b/sim/ppc/ld-cache.c @@ -42,9 +42,10 @@ static const name_map cache_type_map[] = { void -append_cache_rule (cache_table **table, char *type, char *field_name, - char *derived_name, char *type_def, - char *expression, table_entry *file_entry) +append_cache_rule (cache_table **table, const char *type, + const char *field_name, const char *derived_name, + const char *type_def, const char *expression, + table_entry *file_entry) { while ((*table) != NULL) table = &(*table)->next; @@ -60,7 +61,7 @@ append_cache_rule (cache_table **table, char *type, char *field_name, cache_table * -load_cache_table(char *file_name, +load_cache_table(const char *file_name, int hi_bit_nr) { table *file = table_open(file_name, nr_cache_rule_fields, 0); |