memcpy bug
This commit is contained in:
@@ -8,13 +8,14 @@ LIBS += -L/opt/systemc/lib-linux64 -lsystemc
|
||||
LIBS += -L/opt/boost/lib -lboost_filesystem -lboost_system
|
||||
LIBS += -L/opt/sqlite3/lib -lsqlite3
|
||||
LIBS += -lpthread
|
||||
LIBS += -lxerces-c
|
||||
LIBS += -L/opt/xerces-c-3.1.1/lib -lxerces-c
|
||||
LIBS += -L../src/common/third_party/DRAMPower/src/ -ldrampowerxml
|
||||
LIBS += -L../src/common/third_party/DRAMPower/src/ -ldrampower
|
||||
|
||||
INCLUDEPATH += /opt/systemc/include
|
||||
INCLUDEPATH += /opt/boost/include
|
||||
INCLUDEPATH += /opt/sqlite3/include
|
||||
INCLUDEPATH += /opt/xerces-c-3.1.1/include
|
||||
INCLUDEPATH += ../src/common/third_party/DRAMPower/src
|
||||
INCLUDEPATH += ../src/common/third_party/DRAMPower/src/libdrampower
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<memspec>
|
||||
<memconfig>
|
||||
<parameter id="bankwiseLogic" type="bool" value="1" />
|
||||
<parameter id="bankwiseLogic" type="bool" value="0" />
|
||||
<parameter id="openPagePolicy" type="bool" value="1" />
|
||||
<parameter id="adaptiveOpenPagePolicy" type="bool" value="0" />
|
||||
<parameter id="refreshAwareScheduling" type="bool" value="0" />
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
|
||||
<trace-setup id="media">
|
||||
<device clkMhz="800">chstone-sha_32.stl</device>
|
||||
<device clkMhz="800">small.stl</device>
|
||||
</trace-setup>
|
||||
|
||||
</trace-setups>
|
||||
|
||||
@@ -56,7 +56,7 @@ class column
|
||||
|
||||
column(int bytes)
|
||||
{
|
||||
bytes = bytes;
|
||||
this->bytes = bytes;
|
||||
data = new unsigned char[bytes];
|
||||
}
|
||||
|
||||
@@ -68,6 +68,7 @@ class column
|
||||
void set(unsigned char * payloadDataPtr)
|
||||
{
|
||||
printf("Dest: %p Source: %p\n",data,payloadDataPtr);
|
||||
printf("Bytes: %i\n",bytes);
|
||||
cout << "mem" ;
|
||||
memcpy(data, payloadDataPtr, bytes); // XXX hier knallts
|
||||
cout << "copy" << endl;
|
||||
|
||||
@@ -32,6 +32,7 @@ int main(int argc, char **argv)
|
||||
|
||||
int sc_main(int argc, char **argv)
|
||||
{
|
||||
cout<<"hello"<<endl;
|
||||
sc_set_time_resolution(1, SC_PS);
|
||||
resources = pathOfFile(argv[0]) + string("/../resources/");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user