Unused variable removed

This commit is contained in:
Éder F. Zulian
2016-07-08 11:30:15 +02:00
parent f3d28116b4
commit e1093e2e5f

View File

@@ -40,7 +40,6 @@
#define DRAM_H_
#include <sys/mman.h>
#include <tlm.h>
#include <systemc.h>
#include <tlm_utils/peq_with_cb_and_phase.h>
@@ -65,8 +64,6 @@ using namespace Data;
struct Dram : sc_module
{
std::vector<unsigned char> 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);