summaryrefslogtreecommitdiff
path: root/src/cpu/o3
diff options
context:
space:
mode:
Diffstat (limited to 'src/cpu/o3')
-rw-r--r--src/cpu/o3/dyn_inst_impl.hh4
-rw-r--r--src/cpu/o3/thread_state.hh1
2 files changed, 1 insertions, 4 deletions
diff --git a/src/cpu/o3/dyn_inst_impl.hh b/src/cpu/o3/dyn_inst_impl.hh
index fbeb3c291..22d89ec0b 100644
--- a/src/cpu/o3/dyn_inst_impl.hh
+++ b/src/cpu/o3/dyn_inst_impl.hh
@@ -45,7 +45,6 @@
#include "base/cp_annotate.hh"
#include "cpu/o3/dyn_inst.hh"
-#include "sim/full_system.hh"
#include "debug/O3PipeView.hh"
template <class Impl>
@@ -195,9 +194,6 @@ 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.
diff --git a/src/cpu/o3/thread_state.hh b/src/cpu/o3/thread_state.hh
index a4a12330f..a0c3a8171 100644
--- a/src/cpu/o3/thread_state.hh
+++ b/src/cpu/o3/thread_state.hh
@@ -150,6 +150,7 @@ struct O3ThreadState : public ThreadState {
/** Handles the syscall. */
void syscall(int64_t callnum, Fault *fault)
{
+ fatal_if(FullSystem, "System call emulation is unavailable!");
process->syscall(callnum, tc, fault);
}