Combuster wrote:pushf/popf/cli/sti and some others will not cause a GPF when CR4.VME is enabled
yes,But this is another condition.It is like real mode.
Combuster wrote:I'll need to know what instruction is executed where directly after the popf
It doesn't matter what instruction it is after that.When s or n ,errors just happens
I guess that my problem is that i don't set TSS. I am reading the papersheet of intel,I don't know how to set TSS for IDT
In fact,i use "ud2" to in protected-mode,GPF happens,but i could still go on debug,but in vm86 i cann't .