From 7cb1010bdedb613b06fcf2cb582e14c57d1d794f Mon Sep 17 00:00:00 2001 From: Jordi Vaquero Date: Fri, 26 Jul 2019 16:31:39 +0200 Subject: cpu-o3: added _amo_op parameter in o3 LSQ Fix bug with AMO (or RMW) instructions where the amo_op variable is not being propagated to the LSQ request. Change-Id: I60c59641d9b497051376f638e27f3c4cc361f615 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/19814 Maintainer: Andreas Sandberg Maintainer: Anthony Gutierrez Tested-by: kokoro Reviewed-by: Andreas Sandberg Reviewed-by: Anthony Gutierrez --- src/cpu/o3/lsq.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cpu/o3/lsq.hh') diff --git a/src/cpu/o3/lsq.hh b/src/cpu/o3/lsq.hh index 4701a8c9a..29c76f7b6 100644 --- a/src/cpu/o3/lsq.hh +++ b/src/cpu/o3/lsq.hh @@ -366,7 +366,7 @@ class LSQ isAnyActiveElement(byteEnable.begin(), byteEnable.end())) { auto request = std::make_shared(_inst->getASID(), addr, size, _flags, _inst->masterId(), - _inst->instAddr(), _inst->contextId()); + _inst->instAddr(), _inst->contextId(), _amo_op); if (!byteEnable.empty()) { request->setByteEnable(byteEnable); } -- cgit v1.2.3