Gabe Black has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/52032 )
Change subject: arch: Add PCStatePtr PCStateRef types.
......................................................................
arch: Add PCStatePtr PCStateRef types.
This change creates a stub PCStateBase class which will act as the
guaranteed/virtual interface for all PCState classes. It's currently
empty because we haven't yet identified what needs to be in it.
Change-Id: I1ecb24f57a89bc1307f05424dbeb5a597d44d027
---
M src/arch/generic/pcstate.hh
1 file changed, 20 insertions(+), 1 deletion(-)
diff --git a/src/arch/generic/pcstate.hh b/src/arch/generic/pcstate.hh
index 791f6f6..8fb5ba1 100644
--- a/src/arch/generic/pcstate.hh
+++ b/src/arch/generic/pcstate.hh
@@ -50,11 +50,17 @@
namespace gem5
{
+class PCStateBase : public Serializable
+{
+ public:
+ virtual ~PCStateBase() = default;
+};
+
namespace GenericISA
{
// The guaranteed interface.
-class PCStateCommon : public Serializable
+class PCStateCommon : public PCStateBase
{
protected:
Addr _pc = 0;
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/52032
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: I1ecb24f57a89bc1307f05424dbeb5a597d44d027
Gerrit-Change-Number: 52032
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