[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-discuss] Hello world program execution in qemu-riscvxx
From: |
Peter Maydell |
Subject: |
Re: [Qemu-discuss] Hello world program execution in qemu-riscvxx |
Date: |
Wed, 14 Aug 2019 14:10:26 +0100 |
On Wed, 14 Aug 2019 at 14:09, Peter Maydell <address@hidden> wrote:
>
> On Wed, 14 Aug 2019 at 13:59, Mohamed Shafi <address@hidden> wrote:
> >
> > Hi,
> >
> > I was able to execute a hello world program in linux using the user lever
> > binary in the following manner :
> >
> > qemu-riscv32 hello_world.elf
> >
> > I am trying to run a similar hello world program in the windows machine.
> > But i see that user mode emulation is not supported in windows. How do i
> > execute/run a hello world program in windows ?
>
> As you say, user-mode is only supported for Linux hosts. On
> a Windows host you'd need to boot an entire risc-v Linux in
> the system-emulation QEMU, and then run programs inside it.
Forgot to mention, but it's possible that the 'Windows subsystem
for Linux' would let you build and run the Linux qemu-user-mode,
in the same way as if you have a real Linux host. I haven't tried
it though; it might work, or might not.
-- PMM