 +
 +void Ramulator::readComplete(ramulator::Request& req){
 +    DPRINTF(Ramulator, "Read to %ld completed.\n", req.addr);
-+    auto pkt_q = reads.find(req.addr)->second;
++    auto& pkt_q = reads.find(req.addr)->second;
 +    PacketPtr pkt = pkt_q.front();
 +    pkt_q.pop_front();
 +    if (!pkt_q.size())

+3. Run gem5 with Ramulator
+    3.1 Use --mem-type=ramulator and --ramulator-config=XXX
+
diff -r 0e86fac7254c ext/ramulator/SConscript
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/ext/ramulator/SConscript  Fri Jan 22 19:05:46 2016 -0500
@@ -0,0 +1,48 @@
+# -*- mode:python -*-
+

 
     parser.add_option("-l", "--lpae", action="store_true")
     parser.add_option("-V", "--virtualisation", action="store_true")
diff -r 0e86fac7254c -r d1234c44d57e ext/dnet/os.h
--- a/ext/dnet/os.h	Sat May 31 18:00:23 2014 -0700
+++ b/ext/dnet/os.h	Thu Mar 10 03:46:14 2016 +0800
@@ -98,7 +98,10 @@
 
 /* Support for flexible arrays. */
