t1000.cc (4762:c94e103c83ad) | t1000.cc (5034:6186ef720dd4) |
---|---|
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; --- 25 unchanged lines hidden (view full) --- 34 35#include <deque> 36#include <string> 37#include <vector> 38 39#include "cpu/intr_control.hh" 40#include "dev/simconsole.hh" 41#include "dev/sparc/t1000.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; --- 25 unchanged lines hidden (view full) --- 34 35#include <deque> 36#include <string> 37#include <vector> 38 39#include "cpu/intr_control.hh" 40#include "dev/simconsole.hh" 41#include "dev/sparc/t1000.hh" |
42#include "params/T1000.hh" | |
43#include "sim/system.hh" 44 45using namespace std; 46//Should this be AlphaISA? 47using namespace TheISA; 48 | 42#include "sim/system.hh" 43 44using namespace std; 45//Should this be AlphaISA? 46using namespace TheISA; 47 |
49T1000::T1000(const string &name, System *s, IntrControl *ic) 50 : Platform(name, ic), system(s) | 48T1000::T1000(const Params *p) 49 : Platform(p), system(p->system) |
51{ 52 // set the back pointer from the system to myself 53 system->platform = this; 54} 55 56Tick 57T1000::intrFrequency() 58{ --- 40 unchanged lines hidden (view full) --- 99{ 100 panic("Need implementation\n"); 101 M5_DUMMY_RETURN 102} 103 104T1000 * 105T1000Params::create() 106{ | 50{ 51 // set the back pointer from the system to myself 52 system->platform = this; 53} 54 55Tick 56T1000::intrFrequency() 57{ --- 40 unchanged lines hidden (view full) --- 98{ 99 panic("Need implementation\n"); 100 M5_DUMMY_RETURN 101} 102 103T1000 * 104T1000Params::create() 105{ |
107 return new T1000(name, system, intrctrl); | 106 return new T1000(this); |
108} | 107} |