aboutsummaryrefslogtreecommitdiff
path: root/sim/v850/simops.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2022-12-25 00:32:49 -0500
committerMike Frysinger <vapier@gentoo.org>2022-12-25 02:10:22 -0500
commit8290c8b5dd38636b2448a53f3de4555b7acad3a7 (patch)
treeeacbf8ca9707d1f6d91023da769ce249e7306831 /sim/v850/simops.c
parent46ebce9b9c70c85caa9e4cfb5c19340ccfec38fc (diff)
downloadgdb-8290c8b5dd38636b2448a53f3de4555b7acad3a7.zip
gdb-8290c8b5dd38636b2448a53f3de4555b7acad3a7.tar.gz
gdb-8290c8b5dd38636b2448a53f3de4555b7acad3a7.tar.bz2
sim: v850: fix SMP compile
The igen tool sets up the SD & CPU defines for code fragments to use, but v850 was expecting "sd". Change all the igen related code to use SD so it actually compiles, and fix a few places to use "CPU" instead of hardcoding cpu0.
Diffstat (limited to 'sim/v850/simops.c')
-rw-r--r--sim/v850/simops.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sim/v850/simops.c b/sim/v850/simops.c
index 5783f86..69db8aa 100644
--- a/sim/v850/simops.c
+++ b/sim/v850/simops.c
@@ -48,6 +48,9 @@ int type3_regs[15] = { 2, 1, 0, 27, 26, 25, 24, 31, 30, 29, 28, 23, 22, 20, 21};
#define SIZE_VALUES 11
#endif
+/* TODO: This file largely assumes a single CPU. */
+#define CPU STATE_CPU (sd, 0)
+
uint32_t trace_values[3];
int trace_num_values;