aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2025-01-21 13:16:31 +0100
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2025-03-06 15:46:18 +0100
commitff3779a543954f7c3e7f3a604eefcc7c15726940 (patch)
treebbd72323aa1bbe5442026e0e9d8a08937f881726
parentedee3da2e62ffa741083e1caa78203f91a7f1a87 (diff)
downloadqemu-ff3779a543954f7c3e7f3a604eefcc7c15726940.zip
qemu-ff3779a543954f7c3e7f3a604eefcc7c15726940.tar.gz
qemu-ff3779a543954f7c3e7f3a604eefcc7c15726940.tar.bz2
target/tricore: Ensure not being build on user emulation
Currently only system emulation is supported. Assert no target code is built for user emulation. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20250121142341.17001-4-philmd@linaro.org>
-rw-r--r--target/tricore/cpu.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/target/tricore/cpu.h b/target/tricore/cpu.h
index 8e431d7..cf9dbc6 100644
--- a/target/tricore/cpu.h
+++ b/target/tricore/cpu.h
@@ -26,6 +26,10 @@
#include "qemu/cpu-float.h"
#include "tricore-defs.h"
+#ifdef CONFIG_USER_ONLY
+#error "TriCore does not support user mode emulation"
+#endif
+
typedef struct CPUArchState {
/* GPR Register */
uint32_t gpr_a[16];