Il gio 11 dic 2025, 23:22 Richard Henderson <[email protected]>
ha scritto:
> > Yes, I was confused by the comment and by QEMU's incorrect decoding
> logic:
> >
> > if (CODE32(s) && !VM86(s)) {
> >
> > which should be changed to
> >
> > if (PE(s) && !VM86(s)) {
>
> I can't find the language for that. Can you point me at it?
>
It's the exception condition tables. They all mention that you get #UD for
the VEX prefix in real or vm86 mode.
Several BMI instructions also have language like "This instruction is not
supported in real mode and virtual-8086 mode".
Paolo
> > And by the way, this also means that we need either separate helpers
> > for 32- and 64-bit addresses, or a mask argument.
>
> Of course.
>
>
> r~
>
>