summaryrefslogtreecommitdiff
path: root/src/cpu
diff options
context:
space:
mode:
authorJordi Vaquero <jordi.vaquero@metempsy.com>2019-07-26 16:31:39 +0200
committerJordi Vaquero <jordi.vaquero@metempsy.com>2019-08-07 17:19:22 +0000
commit7cb1010bdedb613b06fcf2cb582e14c57d1d794f (patch)
tree47cd96527975bca62b3181f97943ce145dc50df3 /src/cpu
parent5f0ffd5d49ee5907847f398bbd976f0ebb785e36 (diff)
downloadgem5-7cb1010bdedb613b06fcf2cb582e14c57d1d794f.tar.xz
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 <andreas.sandberg@arm.com> Maintainer: Anthony Gutierrez <anthony.gutierrez@amd.com> Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com> Reviewed-by: Anthony Gutierrez <anthony.gutierrez@amd.com>
Diffstat (limited to 'src/cpu')
-rw-r--r--src/cpu/o3/lsq.hh2
1 files changed, 1 insertions, 1 deletions
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<Request>(_inst->getASID(),
addr, size, _flags, _inst->masterId(),
- _inst->instAddr(), _inst->contextId());
+ _inst->instAddr(), _inst->contextId(), _amo_op);
if (!byteEnable.empty()) {
request->setByteEnable(byteEnable);
}