Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
hw/riscv/opentitan: Add TYPE_OPENTITAN_MACHINE definition
QOM type names are usually defined as TYPE_FOO.

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-4-philmd@linaro.org>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
  • Loading branch information
philmd authored and alistair23 committed Jun 13, 2023
1 parent e0782b1 commit 264495f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion hw/riscv/opentitan.c
Expand Up @@ -118,7 +118,7 @@ static void opentitan_machine_class_init(MachineClass *mc)
mc->default_ram_size = ibex_memmap[IBEX_DEV_RAM].size;
}

DEFINE_MACHINE("opentitan", opentitan_machine_class_init)
DEFINE_MACHINE(TYPE_OPENTITAN_MACHINE, opentitan_machine_class_init)

static void lowrisc_ibex_soc_init(Object *obj)
{
Expand Down
2 changes: 2 additions & 0 deletions include/hw/riscv/opentitan.h
Expand Up @@ -53,6 +53,8 @@ struct LowRISCIbexSoCState {
MemoryRegion flash_alias;
};

#define TYPE_OPENTITAN_MACHINE "opentitan"

typedef struct OpenTitanState {
/*< private >*/
SysBusDevice parent_obj;
Expand Down

0 comments on commit 264495f

Please sign in to comment.