From: Gabe Black Date: Sun, 8 Dec 2019 04:54:07 +0000 (-0800) Subject: sim: Get rid of the no longer needed DefaultSyscallABI. X-Git-Tag: v20.0.0.0~370 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1d60aba814f9a0ac7bae31070663a4a44e0d3712;p=gem5.git sim: Get rid of the no longer needed DefaultSyscallABI. All ISAs now have their own ABI definitions. Change-Id: I20484b024227658bed7093c232ebf7d64f29bdb6 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/23458 Tested-by: kokoro Reviewed-by: Bobby R. Bruce Maintainer: Gabe Black --- diff --git a/src/sim/syscall_desc.hh b/src/sim/syscall_desc.hh index 8bc392981..a00b1f325 100644 --- a/src/sim/syscall_desc.hh +++ b/src/sim/syscall_desc.hh @@ -150,50 +150,4 @@ class SyscallDescABI : public SyscallDesc using SyscallDesc::SyscallDesc; }; -struct DefaultSyscallABI -{ - using Position = int; -}; - -namespace GuestABI -{ - -template <> -struct Result -{ - static void - store(ThreadContext *tc, const SyscallReturn &ret) - { - auto *process = tc->getProcessPtr(); - process->setSyscallReturn(tc, ret); - } -}; - -template -struct Argument::value>::type> -{ - static Arg - get(ThreadContext *tc, DefaultSyscallABI::Position &position) - { - auto *process = tc->getProcessPtr(); - return process->getSyscallArg(tc, position); - } -}; - -template -struct Argument::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__