From bcea7f4a1a78616bde35c747dcf07fd092c76f60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89der=20F=2E=20Zulian?= Date: Thu, 26 Jul 2018 09:47:47 +0200 Subject: [PATCH] Small change --- DRAMSys/library/src/controller/core/refresh/RGR.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/DRAMSys/library/src/controller/core/refresh/RGR.cpp b/DRAMSys/library/src/controller/core/refresh/RGR.cpp index cd94840a..37b552e4 100644 --- a/DRAMSys/library/src/controller/core/refresh/RGR.cpp +++ b/DRAMSys/library/src/controller/core/refresh/RGR.cpp @@ -40,7 +40,7 @@ #include "../../../common/Utils.h" #define TRUE 1 -#define FALSE 0 +#define FALSE !(TRUE) #define INITIAL_DISPLACEMENT FALSE using namespace std; @@ -96,8 +96,13 @@ RGR::~RGR() { } -bool RGR::hasCollision(const ScheduledCommand __attribute__((unused)) &cmd) +bool RGR::hasCollision(const ScheduledCommand &cmd) { + Bank b = cmd.getBank(); + if (currentState[b] == ST_BURST) { + // A burst due to postponed refreshes shall not be interrupted. + return true; + } return false; }