From: Damien Hedde <damien.hedde@greensocs.com>
To: damien.hedde@greensocs.com, qemu-devel@nongnu.org
Cc: "Mark Burton" <mark.burton@greensocs.com>,
qemu-riscv@nongnu.org, "Paolo Bonzini" <pbonzini@redhat.com>,
"Alistair Francis" <Alistair.Francis@wdc.com>,
"Marc-André Lureau" <marcandre.lureau@redhat.com>
Subject: [PATCH 1/2] hw/char/ibex_uart: set user-creatable
Date: Wed, 11 Aug 2021 11:38:37 +0200 [thread overview]
Message-ID: <20210811093838.18719-2-damien.hedde@greensocs.com> (raw)
In-Reply-To: <20210811093838.18719-1-damien.hedde@greensocs.com>
The ibex_uart meets the criteria to be user_creatable: all
parameters are set from properties.
Note that this patch, alone, does not allow to create an instance
with -device cli option or device_add qmp command. Since it is
a sysbus device, additional authorization must be done by the
machine.
Signed-off-by: Damien Hedde <damien.hedde@greensocs.com>
---
hw/char/ibex_uart.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/hw/char/ibex_uart.c b/hw/char/ibex_uart.c
index 9b0a817713..b1646422c0 100644
--- a/hw/char/ibex_uart.c
+++ b/hw/char/ibex_uart.c
@@ -546,6 +546,7 @@ static void ibex_uart_class_init(ObjectClass *klass, void *data)
{
DeviceClass *dc = DEVICE_CLASS(klass);
+ dc->user_creatable = true;
dc->reset = ibex_uart_reset;
dc->realize = ibex_uart_realize;
dc->vmsd = &vmstate_ibex_uart;
--
2.32.0
next prev parent reply other threads:[~2021-08-11 9:47 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-11 9:38 [PATCH 0/2] Set user creatable for flag ibex uart and plic Damien Hedde
2021-08-11 9:38 ` Damien Hedde [this message]
2021-08-11 9:38 ` [PATCH 2/2] hw/char/ibex_plic: set user-creatable Damien Hedde
2021-08-11 11:15 ` [PATCH 0/2] Set user creatable for flag ibex uart and plic Peter Maydell
2021-08-11 11:48 ` Damien Hedde
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=20210811093838.18719-2-damien.hedde@greensocs.com \
--to=damien.hedde@greensocs.com \
--cc=Alistair.Francis@wdc.com \
--cc=marcandre.lureau@redhat.com \
--cc=mark.burton@greensocs.com \
--cc=pbonzini@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: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).