From: Gabe Black Date: Mon, 18 Jan 2021 05:28:41 +0000 (-0800) Subject: sim: Eliminate the generic PseudoInstABI. X-Git-Tag: develop-gem5-snapshot~187 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=368216033ab9b4bd2d92084ac37784b6550bfb4f;p=gem5.git sim: Eliminate the generic PseudoInstABI. Calls to gem5 ops are now handled by locally defined ABIs in each of the ISAs that support them. Change-Id: I30aac7b49fa8dc8e18aa7724338d1fd2adacda90 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/39319 Reviewed-by: Jason Lowe-Power Maintainer: Gabe Black Tested-by: kokoro --- diff --git a/src/sim/pseudo_inst.hh b/src/sim/pseudo_inst.hh index d244adbe1..b0b65c687 100644 --- a/src/sim/pseudo_inst.hh +++ b/src/sim/pseudo_inst.hh @@ -45,35 +45,14 @@ class ThreadContext; -#include "arch/utility.hh" #include "base/bitfield.hh" +#include "base/logging.hh" +#include "base/trace.hh" #include "base/types.hh" // For Tick and Addr data types. +#include "cpu/thread_context.hh" #include "debug/PseudoInst.hh" #include "sim/guest_abi.hh" -struct PseudoInstABI -{ - using State = int; -}; - -namespace GuestABI -{ - -template <> -struct Argument -{ - static uint64_t - get(ThreadContext *tc, PseudoInstABI::State &state) - { - uint64_t result = - TheISA::getArgument(tc, state, sizeof(uint64_t), false); - state++; - return result; - } -}; - -} // namespace GuestABI - namespace PseudoInst {