#define __ARCH_ALPHA_PSEUDO_INST_HH__
#include "arch/generic/pseudo_inst.hh"
-#include "base/logging.hh"
-class ThreadContext;
+namespace AlphaISA
+{
-namespace AlphaISA {
- using GenericISA::m5Syscall;
- using GenericISA::m5PageFault;
-}
+using GenericISA::m5PageFault;
+
+} // namespace AlphaISA
#endif // __ARCH_ALPHA_PSEUDO_INST_HH__
#define __ARCH_ARM_PSEUDO_INST_HH__
#include "arch/generic/pseudo_inst.hh"
-#include "base/logging.hh"
-class ThreadContext;
+namespace ArmISA
+{
-namespace ArmISA {
- using GenericISA::m5Syscall;
- using GenericISA::m5PageFault;
-}
+using GenericISA::m5PageFault;
+
+} // namespace ArmISA
#endif // __ARCH_ARM_PSEUDO_INST_HH__
using namespace GenericISA;
-void
-GenericISA::m5Syscall(ThreadContext *tc)
-{
- panic("m5Syscall not implemented for current ISA");
-}
-
void
GenericISA::m5PageFault(ThreadContext *tc)
{
namespace GenericISA {
-/*
- * This function is executed when the simulation is executing the syscall
- * handler in System Emulation mode.
- */
-void
-m5Syscall(ThreadContext *tc);
-
/*
* This function is executed when the simulation is executing the pagefault
* handler in System Emulation mode.
#define __ARCH_MIPS_PSEUDO_INST_HH__
#include "arch/generic/pseudo_inst.hh"
-#include "base/logging.hh"
-class ThreadContext;
+namespace MipsISA
+{
-namespace MipsISA {
- using GenericISA::m5Syscall;
- using GenericISA::m5PageFault;
-}
+using GenericISA::m5PageFault;
+
+} // namespace MipsISA
#endif // __ARCH_MIPS_PSEUDO_INST_HH__
#define __ARCH_POWER_PSEUDO_INST_HH__
#include "arch/generic/pseudo_inst.hh"
-#include "base/logging.hh"
-class ThreadContext;
+namespace PowerISA
+{
-namespace PowerISA {
- using GenericISA::m5Syscall;
- using GenericISA::m5PageFault;
-}
+using GenericISA::m5PageFault;
+
+} // namespace PowerISA
#endif // __ARCH_POWER_PSEUDO_INST_HH__
#define __ARCH_RISCV_PSEUDO_INST_HH__
#include "arch/generic/pseudo_inst.hh"
-#include "base/logging.hh"
-class ThreadContext;
+namespace RiscvISA
+{
-namespace RiscvISA {
- using GenericISA::m5Syscall;
- using GenericISA::m5PageFault;
-}
+using GenericISA::m5PageFault;
-#endif // __ARCH_RISCV_PSEUDO_INST_HH__
+} // namespace RiscvISA
+#endif // __ARCH_RISCV_PSEUDO_INST_HH__
#define __ARCH_SPARC_PSEUDO_INST_HH__
#include "arch/generic/pseudo_inst.hh"
-#include "base/logging.hh"
-class ThreadContext;
+namespace SparcISA
+{
-namespace SparcISA {
- using GenericISA::m5Syscall;
- using GenericISA::m5PageFault;
-}
+using GenericISA::m5PageFault;
+
+} // namespace SparcISA
#endif // __ARCH_SPARC_PSEUDO_INST_HH__
namespace X86ISA {
-/*
- * 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");
-
- Fault fault;
- tc->syscall(&fault);
-}
-
/*
* This function is executed when the simulation is executing the pagefault
* handler in System Emulation mode.
class ThreadContext;
-namespace X86ISA {
- void m5Syscall(ThreadContext *tc);
- void m5PageFault(ThreadContext *tc);
-}
+namespace X86ISA
+{
+
+void m5PageFault(ThreadContext *tc);
+
+} // namespace X86ISA
#endif // __ARCH_X86_PSEUDO_INST_HH__
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");
+ Fault fault;
+ tc->syscall(&fault);
+}
+
void
togglesync(ThreadContext *tc)
{
void switchcpu(ThreadContext *tc);
void workbegin(ThreadContext *tc, uint64_t workid, uint64_t threadid);
void workend(ThreadContext *tc, uint64_t workid, uint64_t threadid);
+void m5Syscall(ThreadContext *tc);
void togglesync(ThreadContext *tc);
} // namespace PseudoInst