aboutsummaryrefslogtreecommitdiff
path: root/sim/igen/gen-support.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2022-11-10 23:09:00 +0700
committerMike Frysinger <vapier@gentoo.org>2022-11-11 01:39:49 +0700
commitfa654e74f23fa6e18222a47b05dddb87abd5d5ad (patch)
treecb956f4ee7b00e9bb7be9935efff10971b618205 /sim/igen/gen-support.c
parent689c2b4b65fb5d0ce6b6414685e1f5c6f97d7c25 (diff)
downloadgdb-fa654e74f23fa6e18222a47b05dddb87abd5d5ad.zip
gdb-fa654e74f23fa6e18222a47b05dddb87abd5d5ad.tar.gz
gdb-fa654e74f23fa6e18222a47b05dddb87abd5d5ad.tar.bz2
sim: igen: constify various func arguments
Diffstat (limited to 'sim/igen/gen-support.c')
-rw-r--r--sim/igen/gen-support.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sim/igen/gen-support.c b/sim/igen/gen-support.c
index d9d0f7c..d0ea8d5 100644
--- a/sim/igen/gen-support.c
+++ b/sim/igen/gen-support.c
@@ -37,7 +37,7 @@
static void
print_support_function_name (lf *file,
- function_entry * function,
+ const function_entry *function,
int is_function_definition)
{
if (function->is_internal)
@@ -90,7 +90,7 @@ print_support_function_name (lf *file,
static void
-support_h_function (lf *file, function_entry * function, void *data)
+support_h_function (lf *file, const function_entry *function, void *data)
{
ASSERT (function->type != NULL);
print_support_function_name (file, function, 0 /*!is_definition */ );
@@ -99,7 +99,7 @@ support_h_function (lf *file, function_entry * function, void *data)
extern void
-gen_support_h (lf *file, insn_table *table)
+gen_support_h (lf *file, const insn_table *table)
{
/* output the definition of `SD_' */
if (options.gen.smp)
@@ -173,7 +173,7 @@ gen_support_h (lf *file, insn_table *table)
}
static void
-support_c_function (lf *file, function_entry * function, void *data)
+support_c_function (lf *file, const function_entry *function, void *data)
{
ASSERT (function->type != NULL);
print_support_function_name (file, function, 1 /*!is_definition */ );
@@ -197,7 +197,7 @@ support_c_function (lf *file, function_entry * function, void *data)
void
-gen_support_c (lf *file, insn_table *table)
+gen_support_c (lf *file, const insn_table *table)
{
lf_printf (file, "#include \"sim-main.h\"\n");
lf_printf (file, "#include \"%sidecode.h\"\n",