diff options
author | Ron Dreslinski <rdreslin@umich.edu> | 2004-03-19 14:51:02 -0500 |
---|---|---|
committer | Ron Dreslinski <rdreslin@umich.edu> | 2004-03-19 14:51:02 -0500 |
commit | b4ff8c555fe18093f8b213c7f7ce4080e72ab63b (patch) | |
tree | 364cef738830e0aa922fe75f154df8b221fdc306 /dev/alpha_console.hh | |
parent | 1eb0c9626a575dfc9f2e32243610e76614c331d2 (diff) | |
download | gem5-b4ff8c555fe18093f8b213c7f7ce4080e72ab63b.tar.xz |
Make it so that alpha_console can read the frequency from the correct
sim object(depends on which platform tsunami/tlaser is being used)
dev/alpha_console.cc:
Use dynamice casting once during build to get at the proper device to calculate the frequency.
It is either a tsunami_IO or a tlaser_clock depending on platform (tsunami/tlaser).
If the simobject is not of either of those types then panic
dev/alpha_console.hh:
Pass in a SimObject * that is to either a tlaser_clock or a tsunami_IO
sim/sim_object.cc:
Make it so that you can have a SimObjectParam of type SimObject:
example:
SimObjectParam<SimObject *> so;
--HG--
extra : convert_revision : 08239ef23762b8ea11311630b73fe885d939402e
Diffstat (limited to 'dev/alpha_console.hh')
-rw-r--r-- | dev/alpha_console.hh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dev/alpha_console.hh b/dev/alpha_console.hh index be8538e50..4986d0e5f 100644 --- a/dev/alpha_console.hh +++ b/dev/alpha_console.hh @@ -38,6 +38,7 @@ #include "dev/io_device.hh" #include "sim/host.hh" #include "dev/tsunami_io.hh" +#include "sim/sim_object.hh" class BaseCPU; class SimConsole; @@ -90,7 +91,7 @@ class AlphaConsole : public PioDevice public: /** Standard Constructor */ AlphaConsole(const std::string &name, SimConsole *cons, SimpleDisk *d, - System *system, BaseCPU *cpu, TsunamiIO *clock, + System *system, BaseCPU *cpu, SimObject *clock, int num_cpus, MemoryController *mmu, Addr addr, HierParams *hier, Bus *bus); |