changed exit for invalid privilegdes when setting a segment to an exception. Fixes Extreme pinball. (Thanks wd)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2193
This commit is contained in:
parent
dfe7247a7b
commit
b34f94ecc6
1 changed files with 3 additions and 3 deletions
|
@ -16,7 +16,7 @@
|
|||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
/* $Id: cpu.cpp,v 1.69 2005-04-21 19:12:47 qbix79 Exp $ */
|
||||
/* $Id: cpu.cpp,v 1.70 2005-04-25 19:01:11 qbix79 Exp $ */
|
||||
|
||||
#include <assert.h>
|
||||
#include "dosbox.h"
|
||||
|
@ -1667,8 +1667,8 @@ bool CPU_SetSegGeneral(SegNames seg,Bitu value) {
|
|||
case DESC_DATA_ED_RW_NA: case DESC_DATA_ED_RW_A:
|
||||
case DESC_CODE_R_NC_A: case DESC_CODE_R_NC_NA:
|
||||
if (((value & 3)>desc.DPL()) || (cpu.cpl>desc.DPL())) {
|
||||
E_Exit("CPU_SetSegGeneral: Invalid privileges");
|
||||
// return CPU_PrepareException(EXCEPTION_GP,value & 0xfffc);
|
||||
// extreme pinball
|
||||
return CPU_PrepareException(EXCEPTION_GP,value & 0xfffc);
|
||||
}
|
||||
break;
|
||||
case DESC_CODE_R_C_A: case DESC_CODE_R_C_NA:
|
||||
|
|
Loading…
Add table
Reference in a new issue