using namespace std;
- AlphaConsole::AlphaConsole(const string &name, SimConsole *cons,
- SimpleDisk *d, System *system,
- BaseCPU *cpu, TsunamiIO *clock, int num_cpus,
- Addr a, MemoryController *mmu)
- : FunctionalMemory(name), disk(d), console(cons), addr(a)
+ AlphaConsole::AlphaConsole(const string &name, SimConsole *cons, SimpleDisk *d,
- System *system, BaseCPU *cpu, TlaserClock *clock,
++ System *system, BaseCPU *cpu, TsunamiIO *clock,
+ int num_cpus, MemoryController *mmu, Addr a,
+ HierParams *hier, Bus *bus)
+ : PioDevice(name), disk(d), console(cons), addr(a)
++>>>>>>>
{
mmu->add_child(this, Range<Addr>(addr, addr + size));
Param<Addr> addr;
SimObjectParam<System *> system;
SimObjectParam<BaseCPU *> cpu;
- SimObjectParam<TlaserClock *> clock;
+ SimObjectParam<TsunamiIO *> clock;
+ SimObjectParam<Bus*> io_bus;
+ SimObjectParam<HierParams *> hier;
END_DECLARE_SIM_OBJECT_PARAMS(AlphaConsole)
#include "base/range.hh"
#include "dev/alpha_access.h"
- #include "mem/functional_mem/functional_memory.hh"
+ #include "dev/io_device.hh"
#include "sim/host.hh"
+#include "dev/tsunami_io.hh"
class BaseCPU;
class SimConsole;
public:
/** Standard Constructor */
- AlphaConsole(const std::string &name, SimConsole *cons,
- SimpleDisk *d, System *system, BaseCPU *cpu,
- TsunamiIO *clock, int num_cpus,
- Addr a, MemoryController *mmu);
+ AlphaConsole(const std::string &name, SimConsole *cons, SimpleDisk *d,
- System *system, BaseCPU *cpu, TlaserClock *clock,
++ System *system, BaseCPU *cpu, TsunamiIO *clock,
+ int num_cpus, MemoryController *mmu, Addr addr,
+ HierParams *hier, Bus *bus);
/**
* memory mapped reads and writes