small fix for save/restore

This commit is contained in:
Stanislav Shwartsman 2012-05-20 18:58:57 +00:00
parent eac0991fe1
commit 3f32517201

View File

@ -756,6 +756,8 @@ void BX_CPU_C::after_restore_state(void)
{
handleCpuContextChange();
BX_CPU_THIS_PTR prev_rip = RIP = 0x00000000;
if (BX_CPU_THIS_PTR cpu_mode == BX_MODE_IA32_REAL) CPL = 0;
else {
if (BX_CPU_THIS_PTR cpu_mode == BX_MODE_IA32_V8086) CPL = 3;