From: Hoa Nguyen Date: Wed, 10 Feb 2021 10:52:33 +0000 (-0800) Subject: mem: Initialize pendingWrites stat of NVMStats X-Git-Tag: develop-gem5-snapshot~95 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0bc0c0b9eb78dc72be45be7a1e88d94c84565c77;p=gem5.git mem: Initialize pendingWrites stat of NVMStats The initialization for this stat was mistakenly removed here https://gem5-review.googlesource.com/c/public/gem5/+/39276 Signed-off-by: Hoa Nguyen Change-Id: I27b6ddf6d6b925c9787acb07552a8d5acb081c22 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/41073 Reviewed-by: Jason Lowe-Power Reviewed-by: Daniel Carvalho Maintainer: Jason Lowe-Power Tested-by: kokoro --- diff --git a/src/mem/mem_interface.cc b/src/mem/mem_interface.cc index 95b571e25..04b5040a8 100644 --- a/src/mem/mem_interface.cc +++ b/src/mem/mem_interface.cc @@ -2529,6 +2529,7 @@ NVMInterface::NVMStats::NVMStats(NVMInterface &_nvm) ADD_STAT(pendingReads, UNIT_COUNT, "Reads issued to NVM for which data has not been transferred"), + ADD_STAT(pendingWrites, UNIT_COUNT, "Number of outstanding writes to NVM"), ADD_STAT(bytesPerBank, UNIT_BYTE, "Bytes read within a bank before loading new bank")