43 #ifndef __ARCH_ARM_LINUX_SYSTEM_HH__ 44 #define __ARCH_ARM_LINUX_SYSTEM_HH__ 54 #include "params/LinuxArmSystem.hh" 70 return dynamic_cast<const Params *
>(
_params);
136 virtual void getTaskDetails(
ThreadContext *tc, uint32_t &pid,
137 uint32_t &tgid, std::string &next_task_str, int32_t &
mm);
147 void getTaskDetails(
ThreadContext *tc, uint32_t &pid, uint32_t &tgid,
148 std::string &next_task_str, int32_t &
mm)
override;
152 #endif // __ARCH_ARM_LINUX_SYSTEM_HH__
void startup()
startup() is the final initialization call before simulation.
const Params * params() const
PCEvent * kernelPanicEvent
Event to halt the simulator if the kernel calls panic()
LinuxArmSystemParams Params
Boilerplate params code.
void dumpDmesg()
Dump the kernel's dmesg buffer to stdout.
std::map< uint32_t, uint32_t > taskMap
This map stores a mapping of OS process IDs to internal Task IDs.
Linux::UDelayEvent * uDelaySkipEvent
PC based event to skip udelay(<time>) calls and quiesce the processor for the appropriate amount of t...
ThreadContext is the external interface to all thread state for anything outside of the CPU...
LinuxArmSystem(Params *p)
DumpStatsPCEvent * dumpStatsPCEvent
void initState()
Initialise the system.
Linux::UDelayEvent * constUDelaySkipEvent
Another PC based skip event for const_udelay().
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
DumpStatsPCEvent(PCEventScope *s, const std::string &desc, Addr addr)
A class to skip udelay() and related calls in the kernel.
bool enableContextSwitchStatsDump
When enabled, dump stats/task info on context switches for Streamline and per-thread cache occupancy ...
PCEvent * kernelOopsEvent
Event to halt the simulator if the kernel calls oopses.
DumpStatsPCEvent64(PCEventScope *s, const std::string &desc, Addr addr)
OutputStream * taskFile
This is a file that is placed in the run directory that prints out mappings between taskIds and OS pr...
void mapPid(ThreadContext *tc, uint32_t pid)
This function creates a new task Id for the given pid.