On 9/26/20 3:39 AM, [email protected] wrote: > +++ b/include/hw/core/cpu.h > @@ -458,6 +458,8 @@ struct CPUState { > > /* track IOMMUs whose translations we've cached in the TCG TLB */ > GArray *iommu_notifiers; > + > + int trapnr;
Don't put this here. It belongs in CPUX86State, possibly with #ifdef
CONFIG_USER_ONLY.
> void cpu_loop(CPUX86State *env)
> {
> CPUState *cs = env_cpu(env);
> - int trapnr;
Why are you removing the local variable?
r~
