aboutsummaryrefslogtreecommitdiff
path: root/sim/ppc/igen.c
diff options
context:
space:
mode:
authorMichael Meissner <gnu@the-meissners.org>1995-11-14 11:34:01 +0000
committerMichael Meissner <gnu@the-meissners.org>1995-11-14 11:34:01 +0000
commit39c324612d4ab09807b8e4839b26e5ae9f79eede (patch)
tree1694340da9b392c047229e95a9c79ad0e95d72af /sim/ppc/igen.c
parentf35df46cc3948dcdae7ba27e3fb623bb61ac2562 (diff)
downloadgdb-39c324612d4ab09807b8e4839b26e5ae9f79eede.zip
gdb-39c324612d4ab09807b8e4839b26e5ae9f79eede.tar.gz
gdb-39c324612d4ab09807b8e4839b26e5ae9f79eede.tar.bz2
make inline model use static when inlining.
Diffstat (limited to 'sim/ppc/igen.c')
-rw-r--r--sim/ppc/igen.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/sim/ppc/igen.c b/sim/ppc/igen.c
index b22159e..af337a3 100644
--- a/sim/ppc/igen.c
+++ b/sim/ppc/igen.c
@@ -3083,6 +3083,9 @@ gen_model_h(insn_table *table, lf *file)
lf_printf(file, "#define STATIC_MODEL\n");
lf_printf(file, "#endif\n");
lf_printf(file, "\n");
+ lf_printf(file, "#ifndef EXTERN_MODEL\n");
+ lf_printf(file, "#define EXTERN_MODEL extern\n");
+ lf_printf(file, "#endif\n");
lf_printf(file, "\n");
if (table->max_func_unit_mask > 0xffff) {
@@ -3150,10 +3153,10 @@ gen_model_h(insn_table *table, lf *file)
lf_printf(file, "\n");
}
- lf_printf(file, "STATIC_MODEL model_enum current_model;\n");
- lf_printf(file, "STATIC_MODEL const char *model_name[ (int)nr_models ];\n");
- lf_printf(file, "STATIC_MODEL const char *const *const model_func_unit_name[ (int)nr_models ];\n");
- lf_printf(file, "STATIC_MODEL const model_time *const model_time_mapping[ (int)nr_models ];\n");
+ lf_printf(file, "EXTERN_MODEL model_enum current_model;\n");
+ lf_printf(file, "EXTERN_MODEL const char *model_name[ (int)nr_models ];\n");
+ lf_printf(file, "EXTERN_MODEL const char *const *const model_func_unit_name[ (int)nr_models ];\n");
+ lf_printf(file, "EXTERN_MODEL const model_time *const model_time_mapping[ (int)nr_models ];\n");
lf_printf(file, "\n");
lf_printf(file, "INLINE_MODEL void model_set\n");
lf_printf(file, "(const char *name);\n");