From: Alistair Francis <alistair23@gmail.com> To: Bin Meng <bmeng.cn@gmail.com> Cc: "open list:RISC-V" <qemu-riscv@nongnu.org>, "Bin Meng" <bin.meng@windriver.com>, "Alistair Francis" <alistair.francis@wdc.com>, "qemu-devel@nongnu.org Developers" <qemu-devel@nongnu.org>, "Philippe Mathieu-Daudé" <philmd@redhat.com> Subject: Re: [PATCH 1/2] hw/riscv: spike: Add '/chosen/stdout-path' in device tree unconditionally Date: Fri, 22 Apr 2022 10:59:16 +1000 [thread overview] Message-ID: <CAKmqyKMrTe-Jgai8AO1mXmiW6iyQjD2G9myYGi8BRYgFBEdgUw@mail.gmail.com> (raw) In-Reply-To: <20220421055629.1177285-1-bmeng.cn@gmail.com> On Thu, Apr 21, 2022 at 3:57 PM Bin Meng <bmeng.cn@gmail.com> wrote: > > From: Bin Meng <bin.meng@windriver.com> > > At present the adding '/chosen/stdout-path' property in device tree > is determined by whether a kernel command line is provided, which is > wrong. It should be added unconditionally. > > Fixes: 8d8897accb1c ("hw/riscv: spike: Allow using binary firmware as bios") > Signed-off-by: Bin Meng <bin.meng@windriver.com> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Alistair > --- > > hw/riscv/spike.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/hw/riscv/spike.c b/hw/riscv/spike.c > index d059a67f9b..1562b000bb 100644 > --- a/hw/riscv/spike.c > +++ b/hw/riscv/spike.c > @@ -174,10 +174,11 @@ static void create_fdt(SpikeState *s, const MemMapEntry *memmap, > > riscv_socket_fdt_write_distance_matrix(mc, fdt); > > + qemu_fdt_add_subnode(fdt, "/chosen"); > + qemu_fdt_setprop_string(fdt, "/chosen", "stdout-path", "/htif"); > + > if (cmdline) { > - qemu_fdt_add_subnode(fdt, "/chosen"); > qemu_fdt_setprop_string(fdt, "/chosen", "bootargs", cmdline); > - qemu_fdt_setprop_string(fdt, "/chosen", "stdout-path", "/htif"); > } > } > > -- > 2.25.1 > >
WARNING: multiple messages have this Message-ID (diff)
From: Alistair Francis <alistair23@gmail.com> To: Bin Meng <bmeng.cn@gmail.com> Cc: "Alistair Francis" <alistair.francis@wdc.com>, "qemu-devel@nongnu.org Developers" <qemu-devel@nongnu.org>, "open list:RISC-V" <qemu-riscv@nongnu.org>, "Bin Meng" <bin.meng@windriver.com>, "Philippe Mathieu-Daudé" <philmd@redhat.com> Subject: Re: [PATCH 1/2] hw/riscv: spike: Add '/chosen/stdout-path' in device tree unconditionally Date: Fri, 22 Apr 2022 10:59:16 +1000 [thread overview] Message-ID: <CAKmqyKMrTe-Jgai8AO1mXmiW6iyQjD2G9myYGi8BRYgFBEdgUw@mail.gmail.com> (raw) In-Reply-To: <20220421055629.1177285-1-bmeng.cn@gmail.com> On Thu, Apr 21, 2022 at 3:57 PM Bin Meng <bmeng.cn@gmail.com> wrote: > > From: Bin Meng <bin.meng@windriver.com> > > At present the adding '/chosen/stdout-path' property in device tree > is determined by whether a kernel command line is provided, which is > wrong. It should be added unconditionally. > > Fixes: 8d8897accb1c ("hw/riscv: spike: Allow using binary firmware as bios") > Signed-off-by: Bin Meng <bin.meng@windriver.com> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Alistair > --- > > hw/riscv/spike.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/hw/riscv/spike.c b/hw/riscv/spike.c > index d059a67f9b..1562b000bb 100644 > --- a/hw/riscv/spike.c > +++ b/hw/riscv/spike.c > @@ -174,10 +174,11 @@ static void create_fdt(SpikeState *s, const MemMapEntry *memmap, > > riscv_socket_fdt_write_distance_matrix(mc, fdt); > > + qemu_fdt_add_subnode(fdt, "/chosen"); > + qemu_fdt_setprop_string(fdt, "/chosen", "stdout-path", "/htif"); > + > if (cmdline) { > - qemu_fdt_add_subnode(fdt, "/chosen"); > qemu_fdt_setprop_string(fdt, "/chosen", "bootargs", cmdline); > - qemu_fdt_setprop_string(fdt, "/chosen", "stdout-path", "/htif"); > } > } > > -- > 2.25.1 > >
next prev parent reply other threads:[~2022-04-22 1:04 UTC|newest] Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-04-21 5:56 [PATCH 1/2] hw/riscv: spike: Add '/chosen/stdout-path' in device tree unconditionally Bin Meng 2022-04-21 5:56 ` Bin Meng 2022-04-21 5:56 ` [PATCH 2/2] hw/riscv: Don't add empty bootargs to device tree Bin Meng 2022-04-21 5:56 ` Bin Meng 2022-04-21 6:13 ` Bin Meng 2022-04-22 1:07 ` Alistair Francis 2022-04-22 1:07 ` Alistair Francis 2022-04-22 23:03 ` Alistair Francis 2022-04-22 23:03 ` Alistair Francis 2022-04-22 0:59 ` Alistair Francis [this message] 2022-04-22 0:59 ` [PATCH 1/2] hw/riscv: spike: Add '/chosen/stdout-path' in device tree unconditionally Alistair Francis
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=CAKmqyKMrTe-Jgai8AO1mXmiW6iyQjD2G9myYGi8BRYgFBEdgUw@mail.gmail.com \ --to=alistair23@gmail.com \ --cc=alistair.francis@wdc.com \ --cc=bin.meng@windriver.com \ --cc=bmeng.cn@gmail.com \ --cc=philmd@redhat.com \ --cc=qemu-devel@nongnu.org \ --cc=qemu-riscv@nongnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.