On 9/3/21 8:15 PM, Philippe Mathieu-Daudé wrote:
Restrict has_work() to TCG sysemu.

Signed-off-by: Philippe Mathieu-Daudé<f4...@amsat.org>
---
  target/xtensa/cpu.c | 16 +++++++++-------
  1 file changed, 9 insertions(+), 7 deletions(-)

diff --git a/target/xtensa/cpu.c b/target/xtensa/cpu.c
index c1cbd03595e..f7c3f368737 100644
--- a/target/xtensa/cpu.c
+++ b/target/xtensa/cpu.c
@@ -43,18 +43,19 @@ static void xtensa_cpu_set_pc(CPUState *cs, vaddr value)
      cpu->env.pc = value;
  }
+#ifndef CONFIG_USER_ONLY
+
+#if defined(CONFIG_TCG)
  static bool xtensa_cpu_has_work(CPUState *cs)

No CONFIG_TCG, otherwise,
Reviewed-by: Richard Henderson <richard.hender...@linaro.org>

r~


Reply via email to