1
0
Fork 0

issue an exception for some invalid selector type on pmode CALL instead of exiting (vbdos)

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2834
This commit is contained in:
Sebastian Strohhäcker 2007-04-14 11:16:29 +00:00
parent b6e72ef8e1
commit 2147dc647b

View file

@ -16,7 +16,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/* $Id: cpu.cpp,v 1.98 2007-02-22 08:35:34 qbix79 Exp $ */
/* $Id: cpu.cpp,v 1.99 2007-04-14 11:16:29 c2woody Exp $ */
#include <assert.h>
#include <sstream>
@ -1163,8 +1163,8 @@ call_code:
LOG(LOG_CPU,LOG_NORMAL)("CALL:TSS to %X",selector);
CPU_SwitchTask(selector,TSwitch_CALL_INT,oldeip);
break;
case DESC_INVALID:
// used by some installers
case DESC_DATA_EU_RW_NA: // vbdos
case DESC_INVALID: // used by some installers
CPU_Exception(EXCEPTION_GP,selector & 0xfffc);
return;
default: