summaryrefslogtreecommitdiff
path: root/src/mem/simple_dram.hh
diff options
context:
space:
mode:
authorAndreas Hansson <andreas.hansson@arm.com>2013-08-19 03:52:31 -0400
committerAndreas Hansson <andreas.hansson@arm.com>2013-08-19 03:52:31 -0400
commitac42db8134bff8617e20e1a034dc0d65158335ae (patch)
tree3bd964c031f0bc271da2444152b2f686a3f81f36 /src/mem/simple_dram.hh
parent243f135e5f4a4ec5b4a483f8f9ee90e88d750a2a (diff)
downloadgem5-ac42db8134bff8617e20e1a034dc0d65158335ae.tar.xz
mem: Perform write merging in the DRAM write queue
This patch implements basic write merging in the DRAM to avoid redundant bursts. When a new access is added to the queue it is compared against the existing entries, and if it is either intersecting or immediately succeeding/preceeding an existing item it is merged. There is currently no attempt made at avoiding iterating over the existing items in determining whether merging is possible or not.
Diffstat (limited to 'src/mem/simple_dram.hh')
-rw-r--r--src/mem/simple_dram.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mem/simple_dram.hh b/src/mem/simple_dram.hh
index 313ad067b..9473f010f 100644
--- a/src/mem/simple_dram.hh
+++ b/src/mem/simple_dram.hh
@@ -209,13 +209,13 @@ class SimpleDRAM : public AbstractMemory
* reason is to keep the address offset so we can accurately check
* incoming read packets with packets in the write queue.
*/
- const Addr addr;
+ Addr addr;
/**
* The size of this dram packet in bytes
* It is always equal or smaller than DRAM burst size
*/
- const unsigned int size;
+ unsigned int size;
/**
* A pointer to the BurstHelper if this DRAMPacket is a split packet