system.cc (11392:5967db4cff04) | system.cc (12017:93e762dd5c82) |
---|---|
1/* 2 * Copyright (c) 2015 Ruslan Bukin <br@bsdpad.com> 3 * All rights reserved. 4 * 5 * This software was developed by the University of Cambridge Computer 6 * Laboratory as part of the CTSRD Project, with support from the UK Higher 7 * Education Innovation Fund (HEIF). 8 * --- 37 unchanged lines hidden (view full) --- 46#include "mem/fs_translating_port_proxy.hh" 47#include "mem/physical.hh" 48#include "sim/stat_control.hh" 49 50using namespace ArmISA; 51using namespace FreeBSD; 52 53FreebsdArmSystem::FreebsdArmSystem(Params *p) | 1/* 2 * Copyright (c) 2015 Ruslan Bukin <br@bsdpad.com> 3 * All rights reserved. 4 * 5 * This software was developed by the University of Cambridge Computer 6 * Laboratory as part of the CTSRD Project, with support from the UK Higher 7 * Education Innovation Fund (HEIF). 8 * --- 37 unchanged lines hidden (view full) --- 46#include "mem/fs_translating_port_proxy.hh" 47#include "mem/physical.hh" 48#include "sim/stat_control.hh" 49 50using namespace ArmISA; 51using namespace FreeBSD; 52 53FreebsdArmSystem::FreebsdArmSystem(Params *p) |
54 : GenericArmSystem(p), dumpStatsPCEventF(nullptr), | 54 : GenericArmSystem(p), |
55 enableContextSwitchStatsDump(p->enable_context_switch_stats_dump), 56 taskFile(nullptr), kernelPanicEvent(nullptr), kernelOopsEvent(nullptr) 57{ 58 if (p->panic_on_panic) { 59 kernelPanicEvent = addKernelFuncEventOrPanic<PanicPCEvent>( 60 "panic", "Kernel panic in simulated kernel"); 61 } else { 62#ifndef NDEBUG --- 82 unchanged lines hidden (view full) --- 145} 146 147FreebsdArmSystem::~FreebsdArmSystem() 148{ 149 if (uDelaySkipEvent) 150 delete uDelaySkipEvent; 151 if (constUDelaySkipEvent) 152 delete constUDelaySkipEvent; | 55 enableContextSwitchStatsDump(p->enable_context_switch_stats_dump), 56 taskFile(nullptr), kernelPanicEvent(nullptr), kernelOopsEvent(nullptr) 57{ 58 if (p->panic_on_panic) { 59 kernelPanicEvent = addKernelFuncEventOrPanic<PanicPCEvent>( 60 "panic", "Kernel panic in simulated kernel"); 61 } else { 62#ifndef NDEBUG --- 82 unchanged lines hidden (view full) --- 145} 146 147FreebsdArmSystem::~FreebsdArmSystem() 148{ 149 if (uDelaySkipEvent) 150 delete uDelaySkipEvent; 151 if (constUDelaySkipEvent) 152 delete constUDelaySkipEvent; |
153 154 if (dumpStatsPCEventF) 155 delete dumpStatsPCEventF; | |
156} 157 158FreebsdArmSystem * 159FreebsdArmSystemParams::create() 160{ 161 return new FreebsdArmSystem(this); 162} 163 164void 165FreebsdArmSystem::startup() 166{ 167} | 153} 154 155FreebsdArmSystem * 156FreebsdArmSystemParams::create() 157{ 158 return new FreebsdArmSystem(this); 159} 160 161void 162FreebsdArmSystem::startup() 163{ 164} |