From 866b200c202dded37fdd857a1a42ec149bd109c9 Mon Sep 17 00:00:00 2001 From: Tony Gutierrez Date: Mon, 10 Dec 2018 19:20:06 -0500 Subject: [PATCH] cpu-o3: Fix bug in LSQUnit(uint32_t, uint32_t) ctor Change 9af1214 added a new ctor to the LSQUnit, however there is a typo/bug because it sizes the SQEntries member variable to lqEntries + 1, as opposed to sqEntries + 1. This change corrects the issue by using sqEntries. Change-Id: I19dfaa5c0e335bd7b84343a92034147d7c5d914e Reviewed-on: https://gem5-review.googlesource.com/c/15015 Reviewed-by: Jason Lowe-Power Maintainer: Jason Lowe-Power --- src/cpu/o3/lsq_unit_impl.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cpu/o3/lsq_unit_impl.hh b/src/cpu/o3/lsq_unit_impl.hh index 5438c4d07..13b148768 100644 --- a/src/cpu/o3/lsq_unit_impl.hh +++ b/src/cpu/o3/lsq_unit_impl.hh @@ -144,7 +144,7 @@ LSQUnit::completeDataAccess(PacketPtr pkt) template LSQUnit::LSQUnit(uint32_t lqEntries, uint32_t sqEntries) : lsqID(-1), storeQueue(sqEntries+1), loadQueue(lqEntries+1), - LQEntries(lqEntries+1), SQEntries(lqEntries+1), + LQEntries(lqEntries+1), SQEntries(sqEntries+1), loads(0), stores(0), storesToWB(0), cacheBlockMask(0), stalled(false), isStoreBlocked(false), storeInFlight(false), hasPendingPkt(false), pendingPkt(nullptr) -- 2.30.2