regop.isa (6058:b62d79c1990b) regop.isa (6060:3d524dc980a8)
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

--- 1088 unchanged lines hidden (view full) ---

1097 SegDescriptor desc = SrcReg1;
1098 HandyM5Reg m5reg = M5Reg;
1099
1100 switch (imm8)
1101 {
1102 case SegNoCheck:
1103 break;
1104 case SegCSCheck:
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

--- 1088 unchanged lines hidden (view full) ---

1097 SegDescriptor desc = SrcReg1;
1098 HandyM5Reg m5reg = M5Reg;
1099
1100 switch (imm8)
1101 {
1102 case SegNoCheck:
1103 break;
1104 case SegCSCheck:
1105 panic("CS checks for far calls/jumps not implemented.\\n");
1105 // Make sure it's the right type
1106 if (desc.s == 0 || desc.type.codeOrData != 1) {
1107 fault = new GeneralProtection(0);
1108 } else if (m5reg.cpl != desc.dpl) {
1109 fault = new GeneralProtection(0);
1110 }
1106 break;
1107 case SegCallGateCheck:
1108 panic("CS checks for far calls/jumps through call gates"
1109 "not implemented.\\n");
1110 break;
1111 case SegSoftIntGateCheck:
1112 // Check permissions.
1113 if (desc.dpl < m5reg.cpl) {

--- 167 unchanged lines hidden ---
1111 break;
1112 case SegCallGateCheck:
1113 panic("CS checks for far calls/jumps through call gates"
1114 "not implemented.\\n");
1115 break;
1116 case SegSoftIntGateCheck:
1117 // Check permissions.
1118 if (desc.dpl < m5reg.cpl) {

--- 167 unchanged lines hidden ---