Created
June 6, 2020 15:03
-
-
Save anatol/fef592f57751f608f1caa6842fd0e5ca to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/sim/ppc/ld-insn.c b/sim/ppc/ld-insn.c | |
index e39131ca13..7d7468a9c0 100644 | |
--- a/sim/ppc/ld-insn.c | |
+++ b/sim/ppc/ld-insn.c | |
@@ -28,6 +28,26 @@ | |
#include "igen.h" | |
+model *models; | |
+model *last_model; | |
+ | |
+insn *model_macros; | |
+insn *last_model_macro; | |
+ | |
+insn *model_functions; | |
+insn *last_model_function; | |
+ | |
+insn *model_internal; | |
+insn *last_model_internal; | |
+ | |
+insn *model_static; | |
+insn *last_model_static; | |
+ | |
+insn *model_data; | |
+insn *last_model_data; | |
+ | |
+int max_model_fields_len; | |
+ | |
static void | |
update_depth(insn_table *entry, | |
lf *file, | |
diff --git a/sim/ppc/ld-insn.h b/sim/ppc/ld-insn.h | |
index 88318ffa2b..870f3d4cae 100644 | |
--- a/sim/ppc/ld-insn.h | |
+++ b/sim/ppc/ld-insn.h | |
@@ -200,25 +200,25 @@ extern insn_table *load_insn_table | |
table_include *includes, | |
cache_table **cache_rules); | |
-model *models; | |
-model *last_model; | |
+extern model *models; | |
+extern model *last_model; | |
-insn *model_macros; | |
-insn *last_model_macro; | |
+extern insn *model_macros; | |
+extern insn *last_model_macro; | |
-insn *model_functions; | |
-insn *last_model_function; | |
+extern insn *model_functions; | |
+extern insn *last_model_function; | |
-insn *model_internal; | |
-insn *last_model_internal; | |
+extern insn *model_internal; | |
+extern insn *last_model_internal; | |
-insn *model_static; | |
-insn *last_model_static; | |
+extern insn *model_static; | |
+extern insn *last_model_static; | |
-insn *model_data; | |
-insn *last_model_data; | |
+extern insn *model_data; | |
+extern insn *last_model_data; | |
-int max_model_fields_len; | |
+extern int max_model_fields_len; | |
extern void insn_table_insert_insn | |
(insn_table *table, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment