Deleted Added
sdiff udiff text old ( 3960:1dca397b2bab ) new ( 4762:c94e103c83ad )
full compact
1/*
2 * Copyright (c) 2002-2005 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;

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

34#include "arch/alpha/ev5.hh"
35#include "arch/alpha/system.hh"
36#include "arch/alpha/remote_gdb.hh"
37#include "arch/vtophys.hh"
38#include "base/loader/object_file.hh"
39#include "base/loader/symtab.hh"
40#include "base/trace.hh"
41#include "mem/physical.hh"
42#include "params/AlphaSystem.hh"
43#include "sim/byteswap.hh"
44
45
46using namespace LittleEndianGuest;
47
48AlphaSystem::AlphaSystem(Params *p)
49 : System(p)
50{
51 consoleSymtab = new SymbolTable;
52 palSymtab = new SymbolTable;
53
54
55 /**
56 * Load the pal, and console code into memory
57 */
58 // Load Console Code
59 console = createObjectFile(params()->console);
60 if (console == NULL)
61 fatal("Could not load console file %s", params()->console);
62
63 // Load pal file
64 pal = createObjectFile(params()->pal);
65 if (pal == NULL)
66 fatal("Could not load PALcode file %s", params()->pal);
67
68
69 // Load program sections into memory
70 pal->loadSections(&functionalPort, AlphaISA::LoadAddrMask);
71 console->loadSections(&functionalPort, AlphaISA::LoadAddrMask);
72
73 // load symbols
74 if (!console->loadGlobalSymbols(consoleSymtab))

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

207void
208AlphaSystem::unserialize(Checkpoint *cp, const std::string &section)
209{
210 System::unserialize(cp,section);
211 consoleSymtab->unserialize("console_symtab", cp, section);
212 palSymtab->unserialize("pal_symtab", cp, section);
213}
214
215AlphaSystem *
216AlphaSystemParams::create()
217{
218 return new AlphaSystem(this);
219}