Hi,
Why do you target the user mode for that?
I think it might be easier with the softmmu.
But depending on what you want to do it won't be so easy.
I don't think there are any transaction to read the code basically the
RAM MemoryRegion works with pointer.
You can create a MemoryRegion which will just create a transaction and
passes that to your model but you won't
be able to execute code from it. So you would need to modify that.
But at the end you won't have the same access like in the real HW
because cache are not modelled in QEMU and
it will be really slow :).
Fred
Le 22/02/2016 01:26, Hao Bai a écrit :
Hi All,
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.
[1] Repository: https://github.com/dramninjasUMD/DRAMSim2
Paper: https://www.ece.umd.edu/~blj/papers/cal10-1.pdf
<https://www.ece.umd.edu/%7Eblj/papers/cal10-1.pdf>
Cheers