sim: Remove the syscall gem5 op.
authorGabe Black <gabe.black@gmail.com>
Wed, 21 Oct 2020 00:37:22 +0000 (17:37 -0700)
committerGabe Black <gabe.black@gmail.com>
Thu, 29 Oct 2020 01:36:07 +0000 (01:36 +0000)
This is now handled by the workload "event" gem5 op.

Change-Id: Ibc195fde14a6174d1978bf280c349ca895e7fda3
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/34164
Reviewed-by: Gabe Black <gabe.black@gmail.com>
Maintainer: Gabe Black <gabe.black@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
include/gem5/asm/generic/m5ops.h
include/gem5/m5ops.h
src/sim/pseudo_inst.cc
src/sim/pseudo_inst.hh

index aad927c05bc986bf69fa9574dfa5ff180089e0c7..1b5f0022c56746d30eeba6af55675017b9be3552 100644 (file)
@@ -76,7 +76,6 @@
 #define M5OP_WORK_BEGIN         0x5a
 #define M5OP_WORK_END           0x5b
 
-#define M5OP_SE_SYSCALL         0x60
 #define M5OP_SE_PAGE_FAULT      0x61
 #define M5OP_DIST_TOGGLE_SYNC   0x62
 
     M5OP(m5_panic, M5OP_PANIC)                                  \
     M5OP(m5_work_begin, M5OP_WORK_BEGIN)                        \
     M5OP(m5_work_end, M5OP_WORK_END)                            \
-    M5OP(m5_se_syscall, M5OP_SE_SYSCALL)                        \
     M5OP(m5_se_page_fault, M5OP_SE_PAGE_FAULT)                  \
     M5OP(m5_dist_toggle_sync, M5OP_DIST_TOGGLE_SYNC)            \
     M5OP(m5_workload, M5OP_WORKLOAD)                            \
index 1caab225e049e6ed7348940b148b7d208a924cc1..87eae7f55882c9c8f7f1ee321d26a66649cf8f08 100644 (file)
@@ -65,7 +65,6 @@ void m5_panic(void);
 void m5_work_begin(uint64_t workid, uint64_t threadid);
 void m5_work_end(uint64_t workid, uint64_t threadid);
 
-void m5_se_syscall();
 void m5_se_page_fault();
 
 /*
index 03014c0c6007730b9ea401f6cf9b1174ab3564a2..058e5dd2520ad472ae895d1ba2b945a8ca28d767 100644 (file)
@@ -471,17 +471,6 @@ switchcpu(ThreadContext *tc)
     exitSimLoop("switchcpu");
 }
 
-/*
- * This function is executed when the simulation is executing the syscall
- * handler in System Emulation mode.
- */
-void
-m5Syscall(ThreadContext *tc)
-{
-    DPRINTF(PseudoInst, "PseudoInst::m5Syscall()\n");
-    tc->getSystemPtr()->workload->syscall(tc);
-}
-
 void
 togglesync(ThreadContext *tc)
 {
index e5c4fe59201497b08d89ef60127f6217c9d5ae12..fa55303248856a8d92299a50aec614ab96f1e7d6 100644 (file)
@@ -242,10 +242,6 @@ pseudoInstWork(ThreadContext *tc, uint8_t func, uint64_t &result)
         return false;
 
       /* SE mode functions */
-      case M5OP_SE_SYSCALL:
-        invokeSimcall<ABI>(tc, m5Syscall);
-        return true;
-
       case M5OP_SE_PAGE_FAULT:
         invokeSimcall<ABI>(tc, TheISA::m5PageFault);
         return true;