diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2023-10-13 11:21:51 +0200 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2023-11-07 12:13:27 +0100 |
commit | 6ee45fac56a2e3943214dd0f1568388ee89f16c2 (patch) | |
tree | 5a6cb58c959fdabfa07cf81a73afd255ae09c9d3 /target/m68k | |
parent | bb6cf6f0168efadb95cf3e41963ec295ad28a941 (diff) | |
download | qemu-6ee45fac56a2e3943214dd0f1568388ee89f16c2.zip qemu-6ee45fac56a2e3943214dd0f1568388ee89f16c2.tar.gz qemu-6ee45fac56a2e3943214dd0f1568388ee89f16c2.tar.bz2 |
target: Unify QOM style
Enforce the style described by commit 067109a11c ("docs/devel:
mention the spacing requirement for QOM"):
The first declaration of a storage or class structure should
always be the parent and leave a visual space between that
declaration and the new code. It is also useful to separate
backing for properties (options driven by the user) and internal
state to make navigation easier.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Zhao Liu <zhao1.liu@intel.com>
Message-Id: <20231013140116.255-2-philmd@linaro.org>
Diffstat (limited to 'target/m68k')
-rw-r--r-- | target/m68k/cpu-qom.h | 2 | ||||
-rw-r--r-- | target/m68k/cpu.h | 2 |
2 files changed, 0 insertions, 4 deletions
diff --git a/target/m68k/cpu-qom.h b/target/m68k/cpu-qom.h index 0ec7750..13d94c9 100644 --- a/target/m68k/cpu-qom.h +++ b/target/m68k/cpu-qom.h @@ -35,9 +35,7 @@ OBJECT_DECLARE_CPU_TYPE(M68kCPU, M68kCPUClass, M68K_CPU) * A Motorola 68k CPU model. */ struct M68kCPUClass { - /*< private >*/ CPUClass parent_class; - /*< public >*/ DeviceRealize parent_realize; ResettablePhases parent_phases; diff --git a/target/m68k/cpu.h b/target/m68k/cpu.h index 20afb0c..9ea1802 100644 --- a/target/m68k/cpu.h +++ b/target/m68k/cpu.h @@ -164,9 +164,7 @@ typedef struct CPUArchState { * A Motorola 68k CPU. */ struct ArchCPU { - /*< private >*/ CPUState parent_obj; - /*< public >*/ CPUM68KState env; }; |