I was trying to integrate the DRAMSim2 memory simulator [1] into QEMU. Basically I wanted to modify the current memory interface of QEMU so that all memory accesses will be directed to DRAMSim2. Can anyone give me hints/comments/thoughts on how to do this? I am targeting x86-64 architecture in user mode.