diff options
author | Akihiko Odaki <akihiko.odaki@daynix.com> | 2023-06-28 20:09:03 +0900 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2023-07-06 13:26:43 +0100 |
commit | 9057e5f7c9550d1ea419ce838ae6d0df96fb062e (patch) | |
tree | f156f203ed17d24d533586de8bfcde2dd9fc636d /hw/misc | |
parent | 893ca916c0b9432d46fc16f84c8d3b605a58c843 (diff) |
hw: arm: allwinner-sramc: Set class_size
AwSRAMCClass is larger than SysBusDeviceClass so the class size must be
advertised accordingly.
Fixes: 05def917e1 ("hw: arm: allwinner-sramc: Add SRAM Controller support for R40")
Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20230628110905.38125-1-akihiko.odaki@daynix.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/misc')
-rw-r--r-- | hw/misc/allwinner-sramc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/misc/allwinner-sramc.c b/hw/misc/allwinner-sramc.c index a8b731f8f2..d76c24d081 100644 --- a/hw/misc/allwinner-sramc.c +++ b/hw/misc/allwinner-sramc.c @@ -159,6 +159,7 @@ static const TypeInfo allwinner_sramc_info = { .parent = TYPE_SYS_BUS_DEVICE, .instance_init = allwinner_sramc_init, .instance_size = sizeof(AwSRAMCState), + .class_size = sizeof(AwSRAMCClass), .class_init = allwinner_sramc_class_init, }; |