@@ -8,6 +8,8 @@
* This code is licensed under the GPL.
*/
+#define IMPLEMENTING_A9_SCU
+
#include "hw/misc/a9scu.h"
static uint64_t a9_scu_read(void *opaque, hwaddr offset,
@@ -14,15 +14,21 @@
/* A9MP private memory region. */
+#ifdef IMPLEMENTING_A9_SCU
+#define qom_private
+#else
+#define qom_private QEMU_PRIVATE_ATTR
+#endif
+
typedef struct A9SCUState {
/*< private >*/
- SysBusDevice parent_obj;
+ qom_private SysBusDevice parent_obj;
/*< public >*/
- MemoryRegion iomem;
- uint32_t control;
- uint32_t status;
- uint32_t num_cpu;
+ qom_private MemoryRegion iomem;
+ qom_private uint32_t control;
+ qom_private uint32_t status;
+ qom_private uint32_t num_cpu;
} A9SCUState;
#define TYPE_A9_SCU "a9-scu"
Use the new qom_private infrastructure to mark private fields in the QOM device struct. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> --- hw/misc/a9scu.c | 2 ++ include/hw/misc/a9scu.h | 16 +++++++++++----- 2 files changed, 13 insertions(+), 5 deletions(-)