qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 03/28] target/tricore: Ensure not being build on user emulati


From: Richard Henderson
Subject: Re: [PATCH 03/28] target/tricore: Ensure not being build on user emulation
Date: Fri, 24 Jan 2025 08:51:28 -0800
User-agent: Mozilla Thunderbird

On 1/21/25 06:23, Philippe Mathieu-Daudé wrote:
Currently only system emulation is supported.
Assert no target code is built for user emulation.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
  target/tricore/cpu.h | 4 ++++
  1 file changed, 4 insertions(+)

diff --git a/target/tricore/cpu.h b/target/tricore/cpu.h
index 8e431d79222..cf9dbc6df8e 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];

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]