regop.isa (5857:8cd8e1393990) | regop.isa (5861:8c1aa74572e4) |
---|---|
1// Copyright (c) 2007-2008 The Hewlett-Packard Development Company 2// All rights reserved. 3// 4// Redistribution and use of this software in source and binary forms, 5// with or without modification, are permitted provided that the 6// following conditions are met: 7// 8// The software must be used only for Non-Commercial Use which means any --- 1060 unchanged lines hidden (view full) --- 1069 case SegSoftIntGateCheck: 1070 // Check permissions. 1071 if (desc.dpl < m5reg.cpl) { 1072 fault = new GeneralProtection(selector); 1073 } 1074 // Fall through on purpose 1075 case SegIntGateCheck: 1076 // Make sure the gate's the right type. | 1// Copyright (c) 2007-2008 The Hewlett-Packard Development Company 2// All rights reserved. 3// 4// Redistribution and use of this software in source and binary forms, 5// with or without modification, are permitted provided that the 6// following conditions are met: 7// 8// The software must be used only for Non-Commercial Use which means any --- 1060 unchanged lines hidden (view full) --- 1069 case SegSoftIntGateCheck: 1070 // Check permissions. 1071 if (desc.dpl < m5reg.cpl) { 1072 fault = new GeneralProtection(selector); 1073 } 1074 // Fall through on purpose 1075 case SegIntGateCheck: 1076 // Make sure the gate's the right type. |
1077 if (m5reg.mode == LongMode && ((desc.type & 0xe) != 0xe) || | 1077 if ((m5reg.mode == LongMode && (desc.type & 0xe) != 0xe) || |
1078 ((desc.type & 0x6) != 0x6)) { 1079 fault = new GeneralProtection(0); 1080 } 1081 break; 1082 case SegSSCheck: 1083 if (selector.si || selector.ti) { 1084 if (!desc.p) { 1085 fault = new StackFault(selector); --- 124 unchanged lines hidden --- | 1078 ((desc.type & 0x6) != 0x6)) { 1079 fault = new GeneralProtection(0); 1080 } 1081 break; 1082 case SegSSCheck: 1083 if (selector.si || selector.ti) { 1084 if (!desc.p) { 1085 fault = new StackFault(selector); --- 124 unchanged lines hidden --- |