From 0bc0c0b9eb78dc72be45be7a1e88d94c84565c77 Mon Sep 17 00:00:00 2001 From: Hoa Nguyen Date: Wed, 10 Feb 2021 02:52:33 -0800 Subject: [PATCH] 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 --- src/mem/mem_interface.cc | 1 + 1 file changed, 1 insertion(+) 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") -- 2.30.2