Small change

This commit is contained in:
Éder F. Zulian
2018-07-26 09:47:47 +02:00
parent 64c6740247
commit bcea7f4a1a

View File

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