platform.cc (3918:1f9a98d198e8) platform.cc (4762:c94e103c83ad)
1/*
2 * Copyright (c) 2004-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;

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

26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 *
28 * Authors: Ali Saidi
29 * Nathan Binkert
30 */
31
32#include "base/misc.hh"
33#include "dev/platform.hh"
1/*
2 * Copyright (c) 2004-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;

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

26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 *
28 * Authors: Ali Saidi
29 * Nathan Binkert
30 */
31
32#include "base/misc.hh"
33#include "dev/platform.hh"
34#include "sim/builder.hh"
35#include "sim/sim_exit.hh"
36
37using namespace std;
38using namespace TheISA;
39
40Platform::Platform(const string &name, IntrControl *intctrl)
41 : SimObject(name), intrctrl(intctrl)
42{

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

74
75 if (intLines.test(intr))
76 fatal("Two PCI devices have same interrupt line: %d\n", intr);
77
78 pciDevices.insert(bdf);
79
80 intLines.set(intr);
81}
34#include "sim/sim_exit.hh"
35
36using namespace std;
37using namespace TheISA;
38
39Platform::Platform(const string &name, IntrControl *intctrl)
40 : SimObject(name), intrctrl(intctrl)
41{

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

73
74 if (intLines.test(intr))
75 fatal("Two PCI devices have same interrupt line: %d\n", intr);
76
77 pciDevices.insert(bdf);
78
79 intLines.set(intr);
80}
82
83
84DEFINE_SIM_OBJECT_CLASS_NAME("Platform", Platform)
85