On 10/9/2026 5:52 PM, Pierrick Bouvier wrote:
We introduce this since upcoming semihosting ops will be in the same
ifdef.

Signed-off-by: Pierrick Bouvier <[email protected]>
---


Reviewed-by: Brian Cain <[email protected]>

  include/hw/core/cpu.h | 2 ++
  1 file changed, 2 insertions(+)

diff --git a/include/hw/core/cpu.h b/include/hw/core/cpu.h
index 328e30045ce..8160a301978 100644
--- a/include/hw/core/cpu.h
+++ b/include/hw/core/cpu.h
@@ -183,8 +183,10 @@ struct CPUClass {
      /* when system emulation is not available, this pointer is NULL */
      const struct SysemuCPUOps *sysemu_ops;
+#ifdef CONFIG_TCG
      /* when TCG is not available, this pointer is NULL */
      const TCGCPUOps *tcg_ops;
+#endif
/*
       * Keep non-pointer data at the end to minimize holes.

Reply via email to