From 03ec22b9909cb1960dc3e6d5b80ed6878c6d1f26 Mon Sep 17 00:00:00 2001 From: Timothy Hayes Date: Mon, 13 Jan 2020 10:05:14 +0000 Subject: [PATCH] cpu: Base dyn inst HTM flags getter JIRA: https://gem5.atlassian.net/browse/GEM5-587 Change-Id: Ie15d8849edcff34ee7d5c7dd5e6ee2e099f937fc Signed-off-by: Giacomo Travaglini Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/30326 Tested-by: kokoro Reviewed-by: Jason Lowe-Power Maintainer: Jason Lowe-Power --- src/cpu/base_dyn_inst.hh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/cpu/base_dyn_inst.hh b/src/cpu/base_dyn_inst.hh index bab801935..31dee6c50 100644 --- a/src/cpu/base_dyn_inst.hh +++ b/src/cpu/base_dyn_inst.hh @@ -540,6 +540,11 @@ class BaseDynInst : public ExecContext, public RefCounted bool isLastMicroop() const { return staticInst->isLastMicroop(); } bool isFirstMicroop() const { return staticInst->isFirstMicroop(); } bool isMicroBranch() const { return staticInst->isMicroBranch(); } + // hardware transactional memory + bool isHtmStart() const { return staticInst->isHtmStart(); } + bool isHtmStop() const { return staticInst->isHtmStop(); } + bool isHtmCancel() const { return staticInst->isHtmCancel(); } + bool isHtmCmd() const { return staticInst->isHtmCmd(); } uint64_t getHtmTransactionUid() const override { -- 2.30.2