From b4ff8c555fe18093f8b213c7f7ce4080e72ab63b Mon Sep 17 00:00:00 2001 From: Ron Dreslinski Date: Fri, 19 Mar 2004 14:51:02 -0500 Subject: 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 so; --HG-- extra : convert_revision : 08239ef23762b8ea11311630b73fe885d939402e --- sim/sim_object.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sim') diff --git a/sim/sim_object.cc b/sim/sim_object.cc index c55021e41..2ec588afa 100644 --- a/sim/sim_object.cc +++ b/sim/sim_object.cc @@ -36,6 +36,7 @@ #include "sim/host.hh" #include "sim/sim_object.hh" #include "sim/sim_stats.hh" +#include "sim/param.hh" using namespace std; @@ -191,3 +192,5 @@ SimObject::serializeAll(ostream &os) obj->serialize(os); } } + +DEFINE_SIM_OBJECT_CLASS_NAME("SimObject", SimObject) -- cgit v1.2.3