mem: Initialize pendingWrites stat of NVMStats
authorHoa Nguyen <hoanguyen@ucdavis.edu>
Wed, 10 Feb 2021 10:52:33 +0000 (02:52 -0800)
committerHoa Nguyen <hoanguyen@ucdavis.edu>
Wed, 10 Feb 2021 21:56:20 +0000 (21:56 +0000)
The initialization for this stat was mistakenly removed here
https://gem5-review.googlesource.com/c/public/gem5/+/39276

Signed-off-by: Hoa Nguyen <hoanguyen@ucdavis.edu>
Change-Id: I27b6ddf6d6b925c9787acb07552a8d5acb081c22
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/41073
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Reviewed-by: Daniel Carvalho <odanrc@yahoo.com.br>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/mem/mem_interface.cc

index 95b571e25e4b2f698851c9d9fdbbcc10dad9fd17..04b5040a8322f94b405409e71fce54613312990f 100644 (file)
@@ -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")