We introduce this since upcoming semihosting ops will be in the same ifdef.
Reviewed-by: Brian Cain <[email protected]> Reviewed-by: Philippe Mathieu-Daudé <[email protected]> Link: https://lore.kernel.org/qemu-devel/[email protected] 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 ae66f5e33e3..76801444a16 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
