From 368216033ab9b4bd2d92084ac37784b6550bfb4f Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Sun, 17 Jan 2021 21:28:41 -0800 Subject: [PATCH] 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 --- src/sim/pseudo_inst.hh | 27 +++------------------------ 1 file changed, 3 insertions(+), 24 deletions(-) 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 { -- 2.30.2