tsunami.cc (8739:925f15f96322) tsunami.cc (8741:491297d019f3)
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;

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

31/** @file
32 * Implementation of Tsunami platform.
33 */
34
35#include <deque>
36#include <string>
37#include <vector>
38
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;

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

31/** @file
32 * Implementation of Tsunami platform.
33 */
34
35#include <deque>
36#include <string>
37#include <vector>
38
39#include "config/full_system.hh"
40
41#if FULL_SYSTEM //XXX AlphaSystem doesn't build in SE mode yet.
42#include "arch/alpha/system.hh"
43#endif
44
39#include "config/the_isa.hh"
40#include "cpu/intr_control.hh"
41#include "dev/alpha/tsunami.hh"
42#include "dev/alpha/tsunami_cchip.hh"
43#include "dev/alpha/tsunami_io.hh"
44#include "dev/alpha/tsunami_pchip.hh"
45#include "dev/terminal.hh"
45#include "config/the_isa.hh"
46#include "cpu/intr_control.hh"
47#include "dev/alpha/tsunami.hh"
48#include "dev/alpha/tsunami_cchip.hh"
49#include "dev/alpha/tsunami_io.hh"
50#include "dev/alpha/tsunami_pchip.hh"
51#include "dev/terminal.hh"
46#include "sim/system.hh"
47
48using namespace std;
49//Should this be AlphaISA?
50using namespace TheISA;
51
52Tsunami::Tsunami(const Params *p)
53 : Platform(p), system(p->system)
54{
52
53using namespace std;
54//Should this be AlphaISA?
55using namespace TheISA;
56
57Tsunami::Tsunami(const Params *p)
58 : Platform(p), system(p->system)
59{
55#if FULL_SYSTEM //XXX No platform pointer in SE mode.
56 // set the back pointer from the system to myself
57 system->platform = this;
58#endif
59
60 for (int i = 0; i < Tsunami::Max_CPUs; i++)
61 intr_sum_type[i] = 0;
62}
63
60 for (int i = 0; i < Tsunami::Max_CPUs; i++)
61 intr_sum_type[i] = 0;
62}
63
64Tick
65Tsunami::intrFrequency()
64void
65Tsunami::init()
66{
66{
67 return io->frequency();
67#if FULL_SYSTEM //XXX AlphaSystem doesn't build in SE mode yet.
68 AlphaSystem *alphaSystem = dynamic_cast<AlphaSystem *>(system);
69 assert(alphaSystem);
70 alphaSystem->setIntrFreq(io->frequency());
71#endif
68}
69
70void
71Tsunami::postConsoleInt()
72{
73 io->postPIC(0x10);
74}
75

--- 60 unchanged lines hidden ---
72}
73
74void
75Tsunami::postConsoleInt()
76{
77 io->postPIC(0x10);
78}
79

--- 60 unchanged lines hidden ---