From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52799) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYBss-0006xV-6L for qemu-devel@nongnu.org; Tue, 23 Feb 2016 07:16:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aYBso-00088G-4j for qemu-devel@nongnu.org; Tue, 23 Feb 2016 07:16:06 -0500 References: From: KONRAD Frederic Message-ID: <56CC4D7D.4080608@greensocs.com> Date: Tue, 23 Feb 2016 13:15:57 +0100 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] Integrating a Memory Simulator List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Hao Bai Cc: qemu-devel@nongnu.org, qemu-discuss@nongnu.org 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=20 RAM MemoryRegion works with pointer. You can create a MemoryRegion which will just create a transaction and=20 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=20 because cache are not modelled in QEMU and it will be really slow :). Fred Le 22/02/2016 01:26, Hao Bai a =C3=A9crit : > Hi All, > > I was trying to integrate the DRAMSim2 memory simulator [1] into QEMU.=20 > Basically I wanted to modify the current memory interface of QEMU so=20 > that all memory accesses will be directed to DRAMSim2. Can anyone give=20 > me hints/comments/thoughts on how to do this? I am targeting x86-64=20 > architecture in user mode. > > [1] Repository: https://github.com/dramninjasUMD/DRAMSim2 > Paper: https://www.ece.umd.edu/~blj/papers/cal10-1.pdf=20 > > > Cheers