From e1093e2e5f49ee86acdb8631a61a4783ff443737 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89der=20F=2E=20Zulian?= Date: Fri, 8 Jul 2016 11:30:15 +0200 Subject: [PATCH] Unused variable removed --- DRAMSys/simulator/src/simulation/Dram.h | 5 ----- 1 file changed, 5 deletions(-) diff --git a/DRAMSys/simulator/src/simulation/Dram.h b/DRAMSys/simulator/src/simulation/Dram.h index a30843e6..de805f0a 100644 --- a/DRAMSys/simulator/src/simulation/Dram.h +++ b/DRAMSys/simulator/src/simulation/Dram.h @@ -40,7 +40,6 @@ #define DRAM_H_ #include - #include #include #include @@ -65,8 +64,6 @@ using namespace Data; struct Dram : sc_module { - std::vector ZEROES; - unsigned int burstLength = Configuration::getInstance().memSpec.BurstLength; unsigned int busWidth = Configuration::getInstance().memSpec.BusWidth * Configuration::getInstance().NumberOfDevicesOnDIMM; unsigned int bytesPerBurst = burstLength * (busWidth / 8); @@ -97,8 +94,6 @@ struct Dram : sc_module SC_CTOR(Dram) : tSocket("socket") { - ZEROES.assign(bytesPerBurst, 0); - // FIXME: memory size unsigned int size = 1024 * 1024 * 1024; memory = (unsigned char *)mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANON | MAP_NORESERVE, -1, 0);