hw/riscv/opentitan: Declare QOM types using DEFINE_TYPES() macro
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Sat, 20 May 2023 05:45:07 +0000 (07:45 +0200)
committerAlistair Francis <alistair.francis@wdc.com>
Tue, 13 Jun 2023 07:17:17 +0000 (17:17 +1000)
commite0782b11bd7ef0c8e5cb9b5e83c32736a143deee
treeb8cee9015a0a1852f41f6b264c69ed88d200913b
parent9b29697fefa59431984aed9118e6fc062da0ee10
hw/riscv/opentitan: Declare QOM types using DEFINE_TYPES() macro

When multiple QOM types are registered in the same file,
it is simpler to use the the DEFINE_TYPES() macro. Replace
the type_init() / type_register_static() combination. This
is in preparation of adding the OpenTitan machine type to
this array in a pair of commits.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com>
Message-Id: <20230520054510.68822-3-philmd@linaro.org>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
hw/riscv/opentitan.c