qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] hw/char: ibex_uart: Register device in 'input' category
@ 2021-09-26 10:50 Bin Meng
  2021-09-26 10:50 ` [PATCH 2/3] hw/char: shakti_uart: " Bin Meng
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Bin Meng @ 2021-09-26 10:50 UTC (permalink / raw)
  To: Alistair Francis, qemu-devel, qemu-riscv; +Cc: Philippe Mathieu-Daudé

The category of ibex_uart device is not set. Put it into the
'input' category.

Signed-off-by: Bin Meng <bmeng.cn@gmail.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..e58181fcf4 100644
--- a/hw/char/ibex_uart.c
+++ b/hw/char/ibex_uart.c
@@ -550,6 +550,7 @@ static void ibex_uart_class_init(ObjectClass *klass, void *data)
     dc->realize = ibex_uart_realize;
     dc->vmsd = &vmstate_ibex_uart;
     device_class_set_props(dc, ibex_uart_properties);
+    set_bit(DEVICE_CATEGORY_INPUT, dc->categories);
 }
 
 static const TypeInfo ibex_uart_info = {
-- 
2.25.1



^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2021-09-28  9:27 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-09-26 10:50 [PATCH 1/3] hw/char: ibex_uart: Register device in 'input' category Bin Meng
2021-09-26 10:50 ` [PATCH 2/3] hw/char: shakti_uart: " Bin Meng
2021-09-26 14:40   ` Philippe Mathieu-Daudé
2021-09-28  6:54   ` Alistair Francis
2021-09-26 10:50 ` [PATCH 3/3] hw/char: sifive_uart: " Bin Meng
2021-09-26 14:40   ` Philippe Mathieu-Daudé
2021-09-28  6:54   ` Alistair Francis
2021-09-28  9:18   ` Alistair Francis
2021-09-26 14:40 ` [PATCH 1/3] hw/char: ibex_uart: " Philippe Mathieu-Daudé
2021-09-28  6:52 ` Alistair Francis

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).