[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 10/11] hw: arm: allwinner-sramc: Set class_size
From: |
Peter Maydell |
Subject: |
[PULL 10/11] hw: arm: allwinner-sramc: Set class_size |
Date: |
Tue, 4 Jul 2023 17:36:33 +0100 |
From: Akihiko Odaki <akihiko.odaki@daynix.com>
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>
---
hw/misc/allwinner-sramc.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/hw/misc/allwinner-sramc.c b/hw/misc/allwinner-sramc.c
index a8b731f8f28..d76c24d081f 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,
};
--
2.34.1
- Re: [PULL 07/11] tests/tcg/aarch64: Add testcases for IC IVAU and dual-mapped code, (continued)
[PULL 06/11] target/arm: Handle IC IVAU to improve compatibility with JITs, Peter Maydell, 2023/07/04
[PULL 03/11] target/arm: Avoid splitting Zregs across lines in dump, Peter Maydell, 2023/07/04
[PULL 02/11] hw/arm/sbsa-ref: use XHCI to replace EHCI, Peter Maydell, 2023/07/04
[PULL 04/11] target/arm: Dump ZA[] when active, Peter Maydell, 2023/07/04
[PULL 08/11] tests/qtest: xlnx-canfd-test: Fix code coverity issues, Peter Maydell, 2023/07/04
[PULL 05/11] target/arm: Fix SME full tile indexing, Peter Maydell, 2023/07/04
[PULL 10/11] hw: arm: allwinner-sramc: Set class_size,
Peter Maydell <=
[PULL 09/11] target/arm: gdbstub: Guard M-profile code with CONFIG_TCG, Peter Maydell, 2023/07/04
[PULL 11/11] target/xtensa: Assert that interrupt level is within bounds, Peter Maydell, 2023/07/04
Re: [PULL 00/11] target-arm queue, Richard Henderson, 2023/07/05