Gabe Black has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/39319 )
Change subject: sim: Eliminate the generic PseudoInstABI.
......................................................................
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
---
M src/sim/pseudo_inst.hh
1 file changed, 3 insertions(+), 24 deletions(-)
diff --git a/src/sim/pseudo_inst.hh b/src/sim/pseudo_inst.hh
index d244adb..b0b65c6 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<PseudoInstABI, uint64_t>
-{
- 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
{
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/39319
To unsubscribe, or for help writing mail filters, visit
https://gem5-review.googlesource.com/settings
Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: I30aac7b49fa8dc8e18aa7724338d1fd2adacda90
Gerrit-Change-Number: 39319
Gerrit-PatchSet: 1
Gerrit-Owner: Gabe Black <[email protected]>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s