Some small updates
This commit is contained in:
parent
bfcd242a2f
commit
d4611072f4
@ -1,5 +1,5 @@
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
// $Id: iret.cc,v 1.39 2008-09-06 17:44:02 sshwarts Exp $
|
||||
// $Id: iret.cc,v 1.40 2009-01-13 19:00:30 sshwarts Exp $
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright (c) 2005 Stanislav Shwartsman
|
||||
@ -143,7 +143,7 @@ BX_CPU_C::iret_protected(bxInstruction_c *i)
|
||||
// if VM=1 in flags image on stack then STACK_RETURN_TO_V86
|
||||
if (new_eflags & EFlagsVMMask) {
|
||||
if (CPL == 0) {
|
||||
BX_CPU_THIS_PTR stack_return_to_v86(new_eip, raw_cs_selector, new_eflags);
|
||||
stack_return_to_v86(new_eip, raw_cs_selector, new_eflags);
|
||||
return;
|
||||
}
|
||||
else BX_INFO(("iret: VM set on stack, CPL!=0"));
|
||||
|
@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
// $Id: segment_ctrl_pro.cc,v 1.103 2008-12-06 18:52:02 sshwarts Exp $
|
||||
// $Id: segment_ctrl_pro.cc,v 1.104 2009-01-13 19:00:30 sshwarts Exp $
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright (C) 2001 MandrakeSoft S.A.
|
||||
@ -522,7 +522,7 @@ bx_bool BX_CPU_C::set_segment_ar_data(bx_segment_reg_t *seg, bx_bool valid,
|
||||
break;
|
||||
|
||||
default:
|
||||
BX_PANIC(("set_segment_ar_data(): case %u unsupported", (unsigned) d->type));
|
||||
BX_PANIC(("set_segment_ar_data(): case %u unsupported, valid=%d", (unsigned) d->type, d->valid));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
// $Id: vm8086.cc,v 1.50 2009-01-10 10:37:23 sshwarts Exp $
|
||||
// $Id: vm8086.cc,v 1.51 2009-01-13 19:00:30 sshwarts Exp $
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright (C) 2001 MandrakeSoft S.A.
|
||||
@ -223,6 +223,7 @@ void BX_CPU_C::init_v8086_mode(void)
|
||||
BX_CPU_THIS_PTR sregs[BX_SEG_REG_CS].selector.rpl = 3;
|
||||
|
||||
updateFetchModeMask();
|
||||
handleCpuModeChange();
|
||||
|
||||
#if BX_CPU_LEVEL >= 4 && BX_SUPPORT_ALIGNMENT_CHECK
|
||||
handleAlignmentCheck(); // CPL was modified
|
||||
|
Loading…
Reference in New Issue
Block a user