[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v3 03/29] hw/acpi/cpu: Use CPUState typedef
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH v3 03/29] hw/acpi/cpu: Use CPUState typedef |
Date: |
Mon, 29 Jan 2024 17:44:45 +0100 |
QEMU coding style recommend using structure typedefs:
https://www.qemu.org/docs/master/devel/style.html#typedefs
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>
---
include/hw/acpi/cpu.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/hw/acpi/cpu.h b/include/hw/acpi/cpu.h
index bc901660fb..209e1773f8 100644
--- a/include/hw/acpi/cpu.h
+++ b/include/hw/acpi/cpu.h
@@ -19,7 +19,7 @@
#include "hw/hotplug.h"
typedef struct AcpiCpuStatus {
- struct CPUState *cpu;
+ CPUState *cpu;
uint64_t arch_id;
bool is_inserting;
bool is_removing;
--
2.41.0
- [PATCH v3 00/29] hw, target: Prefer fast cpu_env() over slower CPU QOM cast macro, Philippe Mathieu-Daudé, 2024/01/29
- [PATCH v3 01/29] bulk: Access existing variables initialized to &S->F when available, Philippe Mathieu-Daudé, 2024/01/29
- [PATCH v3 03/29] hw/acpi/cpu: Use CPUState typedef,
Philippe Mathieu-Daudé <=
- [PATCH v3 02/29] hw/core: Declare CPUArchId::cpu as CPUState instead of Object, Philippe Mathieu-Daudé, 2024/01/29
- [PATCH v3 04/29] bulk: Call in place single use cpu_env(), Philippe Mathieu-Daudé, 2024/01/29
- [PATCH v3 05/29] scripts/coccinelle: Add cpu_env.cocci script, Philippe Mathieu-Daudé, 2024/01/29
- [PATCH v3 09/29] target/avr: Prefer fast cpu_env() over slower CPU QOM cast macro, Philippe Mathieu-Daudé, 2024/01/29
- [PATCH v3 06/29] target: Replace CPU_GET_CLASS(cpu -> obj) in cpu_reset_hold() handler, Philippe Mathieu-Daudé, 2024/01/29
- [PATCH v3 07/29] target/alpha: Prefer fast cpu_env() over slower CPU QOM cast macro, Philippe Mathieu-Daudé, 2024/01/29
- [PATCH v3 08/29] target/arm: Prefer fast cpu_env() over slower CPU QOM cast macro, Philippe Mathieu-Daudé, 2024/01/29
- [PATCH v3 10/29] target/cris: Prefer fast cpu_env() over slower CPU QOM cast macro, Philippe Mathieu-Daudé, 2024/01/29