Re: Initialize data memory in user space emulation

2019-09-20 Thread Libo Zhou
ot;; Subject: Re: Initialize data memory in user space emulation On Fri, 20 Sep 2019 at 16:26, Libo Zhou wrote: > > I actually thought about hacking it to mmap from file into guest memory > before running ELF. In include/exec/memory.h, the function > memory_region_init_ram_from_fi

Re: Initialize data memory in user space emulation

2019-09-20 Thread Peter Maydell
On Fri, 20 Sep 2019 at 16:26, Libo Zhou wrote: > > I actually thought about hacking it to mmap from file into guest memory > before running ELF. In include/exec/memory.h, the function > memory_region_init_ram_from_file sounds like what I need. But the entire > memory.h source file is wrapped by

Re: Initialize data memory in user space emulation

2019-09-20 Thread Libo Zhou
space emulation, right? -- Original -- From: "Peter Maydell";; Send time: Friday, Sep 20, 2019 10:55 PM To: "Libo Zhou"; Cc: "qemu-devel"; Subject: Re: Initialize data memory in user space emulation On Fri, 20 Sep 2019 at 15:49,

Re: Initialize data memory in user space emulation

2019-09-20 Thread Libo Zhou
From: "Peter Maydell";; Send time: Friday, Sep 20, 2019 6:36 PM To: "Libo Zhou"; Cc: "qemu-devel"; Subject: Re: Initialize data memory in user space emulation On Fri, 20 Sep 2019 at 10:25, Libo Zhou wrote: > > Hi all, > > I need a w

Re: Initialize data memory in user space emulation

2019-09-20 Thread Peter Maydell
On Fri, 20 Sep 2019 at 15:49, Libo Zhou wrote: > I need to emulate a Digital Signal Processor. The DSP essentially has only > basic MIPS ISA, and it manipulates the data stored in a "data memory". I can > run an ELF with user space emulation, what I need to additionally do is to > initialize th

Re: Initialize data memory in user space emulation

2019-09-20 Thread Peter Maydell
On Fri, 20 Sep 2019 at 10:25, Libo Zhou wrote: > > Hi all, > > I need a way to manipulate data saved in a reserved memory region in linux > user space emulation. I found the -B option very promising. Documentation > says it is useful when the address region required by guest applications is >

Initialize data memory in user space emulation

2019-09-20 Thread Libo Zhou
Hi all, I need a way to manipulate data saved in a reserved memory region in linux user space emulation. I found the -B option very promising. Documentation says it is useful when the address region required by guest applications is reserved on the host. But how can I initialize that memory w

Initialize data memory in user space emulation

2019-09-20 Thread Libo Zhou
Hi all, I need a way to manipulate data saved in a reserved memory region in linux user space emulation. I found the -B option very promising. Documentation says it is useful when the address region required by guest applications is reserved on the host. But how can I initialize that memory