43#include "debug/Loader.hh"
59 if (
p.panic_on_panic) {
60 kernelPanic = addKernelFuncEventOrPanic<PanicPCEvent>(
61 "panic",
"Kernel panic in simulated kernel");
64 kernelPanic = addKernelFuncEventOrPanic<BreakPCEvent>(
"panic");
68 if (
p.panic_on_oops) {
69 kernelOops = addKernelFuncEventOrPanic<PanicPCEvent>(
70 "oops_exit",
"Kernel oops in guest");
84 if (
params().early_kernel_symbols) {
93 "Kernel must have fdt support.");
94 fatal_if(
params().dtb_filename ==
"",
"dtb file is not specified.");
98 inform(
"Loading DTB file: %s at address %#x\n",
params().dtb_filename,
104 "Couldn't append bootargs to DTB file: %s",
107 Addr ra = dtb_file->findReleaseAddr();
111 dtb_file->buildImage().
117 for (
auto *tc:
system->threads) {
void initState() override
initState() is called on each SimObject when not restoring from a checkpoint.
FsFreebsd(const Params &p)
PCEvent * skipUDelay
PC based event to skip udelay(<time>) calls and quiesce the processor for the appropriate amount of t...
bool enableContextSwitchStatsDump
When enabled, dump stats/task info on context switches for Streamline and per-thread cache occupancy ...
void initState() override
initState() is called on each SimObject when not restoring from a checkpoint.
FsWorkload(const Params &p)
PCEvent * addSkipFunc(Args... args)
loader::SymbolTable kernelSymtab
const std::string commandLine
loader::ObjectFile * kernelObj
Addr _loadAddrMask
Mask that should be anded for binary/symbol loading.
This implements an image file format to support loading and modifying flattened device tree blobs for...
#define fatal_if(cond,...)
Conditional fatal macro that checks the supplied condition and only causes a fatal error if the condi...
const Params & params() const
#define warn_if(cond,...)
Conditional warning macro that checks the supplied condition and only prints a warning if the conditi...
SymbolTable debugSymbolTable
Global unified debugging symbol table (for target).
Copyright (c) 2024 Arm Limited All rights reserved.
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.