aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2025-01-21 14:33:33 +0100
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2025-03-06 15:46:18 +0100
commita770b10bafc3e67b16c258167e15f228298c2d35 (patch)
tree5f90350aaf15e39772c6a511cffba10b205fac38
parentbefd818b58c8522f573b8831df820f121bfe642a (diff)
downloadqemu-a770b10bafc3e67b16c258167e15f228298c2d35.zip
qemu-a770b10bafc3e67b16c258167e15f228298c2d35.tar.gz
qemu-a770b10bafc3e67b16c258167e15f228298c2d35.tar.bz2
target/hexagon: Ensure not being build on system emulation
Currently only user emulation is supported. Assert no target code is built for system emulation. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Brian Cain <brian.cain@oss.qualcomm.com> Message-Id: <20250121142341.17001-2-philmd@linaro.org>
-rw-r--r--target/hexagon/cpu.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/target/hexagon/cpu.h b/target/hexagon/cpu.h
index 79e60d4..f78c8f9 100644
--- a/target/hexagon/cpu.h
+++ b/target/hexagon/cpu.h
@@ -26,6 +26,10 @@
#include "mmvec/mmvec.h"
#include "hw/registerfields.h"
+#ifndef CONFIG_USER_ONLY
+#error "Hexagon does not support system emulation"
+#endif
+
#define NUM_PREGS 4
#define TOTAL_PER_THREAD_REGS 64