Deleted Added
sdiff udiff text old ( 5299:e61b9f2a9732 ) new ( 5334:5136aad50b97 )
full compact
1/*
2 * Copyright (c) 2007 The Hewlett-Packard Development Company
3 * All rights reserved.
4 *
5 * Redistribution and use of this software in source and binary forms,
6 * with or without modification, are permitted provided that the
7 * following conditions are met:
8 *

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

52 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
53 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
54 *
55 * Authors: Gabe Black
56 */
57
58#include "arch/x86/miscregs.hh"
59#include "arch/x86/system.hh"
60#include "arch/vtophys.hh"
61#include "base/remote_gdb.hh"
62#include "base/loader/object_file.hh"
63#include "base/loader/symtab.hh"
64#include "base/trace.hh"
65#include "cpu/thread_context.hh"
66#include "mem/physical.hh"
67#include "params/X86System.hh"
68#include "sim/byteswap.hh"
69
70
71using namespace LittleEndianGuest;
72using namespace X86ISA;
73
74X86System::X86System(Params *p)
75 : System(p)
76{
77}
78
79void
80X86System::startup()
81{
82 System::startup();
83 // This is the boot strap processor (BSP). Initialize it to look like
84 // the boot loader has just turned control over to the 64 bit OS. We

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

225 csAttr.defaultSize = 0;
226 csAttr.longMode = 1;
227 threadContexts[0]->setMiscReg(MISCREG_CS_ATTR, csAttr);
228
229 threadContexts[0]->setPC(threadContexts[0]->getSystemPtr()->kernelEntry);
230 threadContexts[0]->setNextPC(threadContexts[0]->readPC());
231
232 // We should now be in long mode. Yay!
233}
234
235X86System::~X86System()
236{
237}
238
239void
240X86System::serialize(std::ostream &os)
241{
242 System::serialize(os);
243}
244

--- 12 unchanged lines hidden ---