mem: Do not include snoop-filter latency in crossbar occupancy
[gem5.git] / src / mem / drampower.cc
index a7339656a9744fbf4daa5a46065f0a5034023207..c15379d92452c6accb2d9d776ae65a5549ef6157 100644 (file)
@@ -155,7 +155,8 @@ DRAMPower::getDataRate(const DRAMCtrlParams* p)
 {
     uint32_t burst_cycles = divCeil(p->tBURST, p->tCK);
     uint8_t data_rate = p->burst_length / burst_cycles;
-    if (data_rate != 1 && data_rate != 2)
-        fatal("Got unexpected data rate %d, should be 1 or 2\n");
+    // 4 for GDDR5
+    if (data_rate != 1 && data_rate != 2 && data_rate != 4)
+        fatal("Got unexpected data rate %d, should be 1 or 2 or 4\n");
     return data_rate;
 }