Gabe Black has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/23458 )
Change subject: sim: Get rid of the no longer needed DefaultSyscallABI.
......................................................................
sim: Get rid of the no longer needed DefaultSyscallABI.
All ISAs now have their own ABI definitions.
Change-Id: I20484b024227658bed7093c232ebf7d64f29bdb6
---
M src/sim/syscall_desc.hh
1 file changed, 0 insertions(+), 46 deletions(-)
diff --git a/src/sim/syscall_desc.hh b/src/sim/syscall_desc.hh
index c34dc90..4d71add 100644
--- a/src/sim/syscall_desc.hh
+++ b/src/sim/syscall_desc.hh
@@ -154,50 +154,4 @@
using SyscallDesc::SyscallDesc;
};
-struct DefaultSyscallABI
-{
- using Position = int;
-};
-
-namespace GuestABI
-{
-
-template <>
-struct Result<DefaultSyscallABI, SyscallReturn>
-{
- static void
- store(ThreadContext *tc, const SyscallReturn &ret)
- {
- auto *process = tc->getProcessPtr();
- process->setSyscallReturn(tc, ret);
- }
-};
-
-template <typename Arg>
-struct Argument<DefaultSyscallABI, Arg,
- typename std::enable_if<std::is_integral<Arg>::value>::type>
-{
- static Arg
- get(ThreadContext *tc, DefaultSyscallABI::Position &position)
- {
- auto *process = tc->getProcessPtr();
- return process->getSyscallArg(tc, position);
- }
-};
-
-template <typename Arg>
-struct Argument<DefaultSyscallABI, Arg,
- typename std::enable_if<std::is_pointer<Arg>::value>::type>
-{
- static Arg
- get(ThreadContext *tc, DefaultSyscallABI::Position &position)
- {
- auto *process = tc->getProcessPtr();
- RegVal reg = process->getSyscallArg(tc, position);
- return (Arg)(uintptr_t)(reg);
- }
-};
-
-} // namespace GuestABI
-
#endif // __SIM_SYSCALL_DESC_HH__
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/23458
To unsubscribe, or for help writing mail filters, visit
https://gem5-review.googlesource.com/settings
Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-Change-Id: I20484b024227658bed7093c232ebf7d64f29bdb6
Gerrit-Change-Number: 23458
Gerrit-PatchSet: 1
Gerrit-Owner: Gabe Black <gabebl...@google.com>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list
gem5-dev@gem5.org
http://m5sim.org/mailman/listinfo/gem5-dev