mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
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>
This commit is contained in:
parent
bb6cf6f016
commit
6ee45fac56
37 changed files with 4 additions and 84 deletions
|
@ -46,9 +46,7 @@ void aarch64_cpu_register(const ARMCPUInfo *info);
|
|||
* An ARM CPU model.
|
||||
*/
|
||||
struct ARMCPUClass {
|
||||
/*< private >*/
|
||||
CPUClass parent_class;
|
||||
/*< public >*/
|
||||
|
||||
const ARMCPUInfo *info;
|
||||
DeviceRealize parent_realize;
|
||||
|
@ -62,9 +60,7 @@ DECLARE_CLASS_CHECKERS(AArch64CPUClass, AARCH64_CPU,
|
|||
TYPE_AARCH64_CPU)
|
||||
|
||||
struct AArch64CPUClass {
|
||||
/*< private >*/
|
||||
ARMCPUClass parent_class;
|
||||
/*< public >*/
|
||||
};
|
||||
|
||||
void register_cp_regs_for_features(ARMCPU *cpu);
|
||||
|
|
|
@ -852,9 +852,7 @@ typedef struct {
|
|||
* An ARM CPU core.
|
||||
*/
|
||||
struct ArchCPU {
|
||||
/*< private >*/
|
||||
CPUState parent_obj;
|
||||
/*< public >*/
|
||||
|
||||
CPUARMState env;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue