We introduce this since upcoming semihosting ops will be in the same ifdef.
Signed-off-by: Pierrick Bouvier <[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. -- 2.43.0
