void
syscall(int64_t callnum, Fault *fault) override
{
- if (FullSystem)
- panic("Syscall emulation isn't available in FS mode.\n");
-
thread.syscall(callnum, fault);
}
#include "base/cp_annotate.hh"
#include "cpu/o3/dyn_inst.hh"
-#include "sim/full_system.hh"
#include "debug/O3PipeView.hh"
template <class Impl>
void
BaseO3DynInst<Impl>::syscall(int64_t callnum, Fault *fault)
{
- if (FullSystem)
- panic("Syscall emulation isn't available in FS mode.\n");
-
// HACK: check CPU's nextPC before and after syscall. If it
// changes, update this instruction's nextPC because the syscall
// must have changed the nextPC.
/** Handles the syscall. */
void syscall(int64_t callnum, Fault *fault)
{
+ fatal_if(FullSystem, "System call emulation is unavailable!");
process->syscall(callnum, tc, fault);
}
void
syscall(int64_t callnum, Fault *fault) override
{
- if (FullSystem)
- panic("Syscall emulation isn't available in FS mode.");
-
thread->syscall(callnum, fault);
}
#include "mem/request.hh"
#include "sim/byteswap.hh"
#include "sim/eventq.hh"
+#include "sim/full_system.hh"
#include "sim/process.hh"
#include "sim/serialize.hh"
#include "sim/system.hh"
void
syscall(int64_t callnum, Fault *fault) override
{
+ fatal_if(FullSystem, "System call emulation is unavailable!");
process->syscall(callnum, this, fault);
}