Closed tkchia closed 1 year ago
m->mode
m->mode.omode
m->mode.genmode
Mode(rde)
--disable-metal
CR0_PE
%cr0
Thank you!
m->mode
into two parts, to explicitly distinguish real mode & 16-bit protected modem->mode.omode
now says how instructions should be decodedm->mode.genmode
says whether guest is in real mode or notMode(rde)
more often, so we can optimize away dead code on--disable-metal
CR0_PE
in guest%cr0
now immediately triggers machine mode change