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; }