mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 16:53:55 -06:00
hw/arm/npcm7xx: Declare QOM macros using OBJECT_DECLARE_SIMPLE_TYPE()
NPCM7XX models have been commited after the conversion from
commit 8063396bf3
("Use OBJECT_DECLARE_SIMPLE_TYPE when possible").
Manually convert them.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20230109140306.23161-11-philmd@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
a91179e7a4
commit
c79aa350ea
10 changed files with 26 additions and 39 deletions
|
@ -55,7 +55,7 @@
|
|||
*/
|
||||
#define NPCM7XX_GCR_NR_REGS (0x148 / sizeof(uint32_t))
|
||||
|
||||
typedef struct NPCM7xxGCRState {
|
||||
struct NPCM7xxGCRState {
|
||||
SysBusDevice parent;
|
||||
|
||||
MemoryRegion iomem;
|
||||
|
@ -65,9 +65,9 @@ typedef struct NPCM7xxGCRState {
|
|||
uint32_t reset_pwron;
|
||||
uint32_t reset_mdlr;
|
||||
uint32_t reset_intcr3;
|
||||
} NPCM7xxGCRState;
|
||||
};
|
||||
|
||||
#define TYPE_NPCM7XX_GCR "npcm7xx-gcr"
|
||||
#define NPCM7XX_GCR(obj) OBJECT_CHECK(NPCM7xxGCRState, (obj), TYPE_NPCM7XX_GCR)
|
||||
OBJECT_DECLARE_SIMPLE_TYPE(NPCM7xxGCRState, NPCM7XX_GCR)
|
||||
|
||||
#endif /* NPCM7XX_GCR_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue