> > +/* Encode cache info for CPUID[4] */ > > Maybe this should be /* Encode cache info for CPUID[2] */ ? > I'm not sure.
Yep, you're right! The following function is used to encode CPUID[2]
as its name indicates.
> > +static void encode_cache_cpuid2(X86CPU *cpu,
> > + uint32_t *eax, uint32_t *ebx,
> > + uint32_t *ecx, uint32_t *edx)
> > +{
Thanks,
Zhao
