sub_system.cc (10268:9dac4c781ad6) | sub_system.cc (11420:b48c0ba4f524) |
---|---|
1/* 2 * Copyright (c) 2014 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 25 unchanged lines hidden (view full) --- 34 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 35 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 36 * 37 * Authors: Geoffrey Blake 38 */ 39 40#include "params/SubSystem.hh" 41#include "sim/sub_system.hh" | 1/* 2 * Copyright (c) 2014 ARM Limited 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 25 unchanged lines hidden (view full) --- 34 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 35 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 36 * 37 * Authors: Geoffrey Blake 38 */ 39 40#include "params/SubSystem.hh" 41#include "sim/sub_system.hh" |
42#include "sim/power/thermal_domain.hh" |
|
42 | 43 |
44SubSystem::SubSystem(const Params *p) 45 : SimObject(p) 46{ 47 // Link thermalDomain <-> SubSystem 48 if (p->thermal_domain) 49 p->thermal_domain->setSubSystem(this); 50} 51 |
|
43SubSystem * 44SubSystemParams::create() 45{ 46 return new SubSystem(this); 47} | 52SubSystem * 53SubSystemParams::create() 54{ 55 return new SubSystem(this); 56} |