From 4c9253761ff6ea4bbd4b207d6dca79eedcab903e Mon Sep 17 00:00:00 2001 From: Yan Lee Date: Tue, 14 Feb 2023 19:50:49 -0800 Subject: [PATCH] mem: add extension mechanism into Request Change-Id: Ie144e0cf243bab6d9ddbea79caf559c7e774a787 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/67958 Maintainer: Jason Lowe-Power Reviewed-by: Yu-hsin Wang Tested-by: kokoro Reviewed-by: Jason Lowe-Power --- src/mem/request.hh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/mem/request.hh b/src/mem/request.hh index be91c71cc0..491aad0241 100644 --- a/src/mem/request.hh +++ b/src/mem/request.hh @@ -58,6 +58,7 @@ #include "base/amo.hh" #include "base/compiler.hh" +#include "base/extensible.hh" #include "base/flags.hh" #include "base/types.hh" #include "cpu/inst_seq.hh" @@ -93,7 +94,7 @@ class ThreadContext; typedef std::shared_ptr RequestPtr; typedef uint16_t RequestorID; -class Request +class Request : public Extensible { public: typedef uint64_t FlagsType; @@ -501,7 +502,8 @@ class Request } Request(const Request& other) - : _paddr(other._paddr), _size(other._size), + : Extensible(other), + _paddr(other._paddr), _size(other._size), _byteEnable(other._byteEnable), _requestorId(other._requestorId), _flags(other._flags),