Emilio G. Cota <c...@braap.org> writes: > So that the declaration of tb_lock can be found.
OK this confused me somewhat as exposing TCG details to the hardware emulation seems broken. However I notice the code your adding to isn't in Fred's latest series although the tb_gen_code ugliness is in master so will need addressing. I'm not sure why x86 is the special snowflake in this case. It looks like a performance hack for emulation which I guess the other guests don't do. > > Signed-off-by: Emilio G. Cota <c...@braap.org> > --- > hw/i386/kvmvapic.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/hw/i386/kvmvapic.c b/hw/i386/kvmvapic.c > index 1c3b5b6..a9a33fd 100644 > --- a/hw/i386/kvmvapic.c > +++ b/hw/i386/kvmvapic.c > @@ -13,6 +13,7 @@ > #include "sysemu/kvm.h" > #include "hw/i386/apic_internal.h" > #include "hw/sysbus.h" > +#include "tcg/tcg.h" > > #define VAPIC_IO_PORT 0x7e -- Alex Bennée