Any ideas on that please?
On 26 September 2013 12:05, Ahmad Hassan <[email protected]> wrote: > Hi, > > How can configure or extract virtual address from PacketPtr object? Gem5 > sends the following address to the main memory controller (dramsim2 in my > case): > > DRAMSim2::MemoryPort::recvTimingReq(PacketPtr pkt) > { > ... > uint64_t* addr = pkt->getAddr();* > Transaction tr = Transaction(transType, *addr*, NULL); > retVal = dramsim2->addTransaction(tr); > ... > } > > But I have noticed that this 'addr' is not the virtual address that I > allocate in the appliation. I have tested through a small C program where I > allocate a memory through malloc and then read/write that memory. I do not > see the virtual address range of malloc'ed memory in the above gem5 method. > > Please can you tell me how can I get the virtual addresses of the heap > memory that I see/allocate in the application? > > Thanks. > > Ahmad >
_______________________________________________ gem5-users mailing list [email protected] http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
