From: Timothy Hayes Date: Mon, 13 Jan 2020 10:05:14 +0000 (+0000) Subject: cpu: Base dyn inst HTM flags getter X-Git-Tag: v20.1.0.0~111 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=03ec22b9909cb1960dc3e6d5b80ed6878c6d1f26;p=gem5.git 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 --- 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 {