summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJiri Gaisler <jiri@gaisler.se>2020-02-26 12:13:07 +0100
committerJiri Gaisler <jiri@gaisler.se>2020-02-26 12:13:07 +0100
commitacd17e755506d316e073175c3993954cb7d51f3e (patch)
treeef13e30e92665d9e9305d80f83ec14b6fe61af19
parentInitialize PC before connecting to gdb (diff)
downloadsis-acd17e755506d316e073175c3993954cb7d51f3e.tar.bz2
Avoid reserved word sparc on SPARC hosts
-rw-r--r--func.c2
-rw-r--r--sis.h2
-rw-r--r--sparc.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/func.c b/func.c
index 15af31b..e9ae888 100644
--- a/func.c
+++ b/func.c
@@ -73,7 +73,7 @@ int sis_gdb_break;
int cpu = 0; /* active cpu */
int ncpu = 1; /* number of cpus to emulate */
int delta = 50; /* time slice for MP simulation */
-const struct cpu_arch *arch = &sparc;
+const struct cpu_arch *arch = &sparc32;
uint32 daddr = 0;
/*
static bfd *abfd;
diff --git a/sis.h b/sis.h
index 0c9c124..d4d6f6a 100644
--- a/sis.h
+++ b/sis.h
@@ -226,7 +226,7 @@ struct estate
};
extern const struct cpu_arch *arch;
-extern const struct cpu_arch sparc;
+extern const struct cpu_arch sparc32;
extern const struct cpu_arch riscv;
/* return values for run_sim */
diff --git a/sparc.c b/sparc.c
index 177cb16..fc899d9 100644
--- a/sparc.c
+++ b/sparc.c
@@ -3469,7 +3469,7 @@ sparc_print_insn (uint32 addr)
printf (" %s", tmp);
}
-const struct cpu_arch sparc = {
+const struct cpu_arch sparc32 = {
3,
sparc_dispatch_instruction,
sparc_execute_trap,