1/* 2 * Copyright (c) 2009 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 27 unchanged lines hidden (view full) --- 36 37namespace X86ISA 38{ 39 40void 41ISA::updateHandyM5Reg(Efer efer, CR0 cr0, 42 SegAttr csAttr, SegAttr ssAttr, RFLAGS rflags) 43{ |
44 HandyM5Reg m5reg = 0; |
45 if (efer.lma) { 46 m5reg.mode = LongMode; 47 if (csAttr.longMode) 48 m5reg.submode = SixtyFourBitMode; 49 else 50 m5reg.submode = CompatabilityMode; 51 } else { 52 m5reg.mode = LegacyMode; --- 305 unchanged lines hidden --- |