Deleted Added
sdiff udiff text old ( 6060:3d524dc980a8 ) new ( 6222:9ee4a06a960b )
full compact
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

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

1242 DestReg = M5Reg;
1243 '''
1244
1245 class Wrdl(RegOp):
1246 code = '''
1247 SegDescriptor desc = SrcReg1;
1248 SegSelector selector = SrcReg2;
1249 if (selector.si || selector.ti) {
1250 SegAttr attr = 0;
1251 attr.dpl = desc.dpl;
1252 attr.defaultSize = desc.d;
1253 if (!desc.s) {
1254 // The expand down bit happens to be set for gates.
1255 if (desc.type.e) {
1256 panic("Gate descriptor encountered.\\n");
1257 }
1258 attr.readable = 1;
1259 attr.writable = 1;
1260 } else {
1261 if (!desc.p)
1262 panic("Segment not present.\\n");
1263 if (desc.type.codeOrData) {
1264 attr.readable = desc.type.r;
1265 attr.longMode = desc.l;
1266 } else {
1267 attr.expandDown = desc.type.e;
1268 attr.readable = 1;
1269 attr.writable = desc.type.w;
1270 }
1271 }
1272 Addr base = desc.baseLow | (desc.baseHigh << 24);
1273 Addr limit = desc.limitLow | (desc.limitHigh << 16);

--- 12 unchanged lines hidden ---