aboutsummaryrefslogtreecommitdiff
path: root/target/i386/cpu-qom.h
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2022-11-24 11:50:09 +0000
committerPeter Maydell <peter.maydell@linaro.org>2022-12-16 15:58:15 +0000
commite86787d33baac07f4a8bf22c4ed253f11fae167e (patch)
treec46c811a15abc42990b93cb0200c3964819a970e /target/i386/cpu-qom.h
parentab85156d8aaaa2b301fe16efee35df8a35f2b33d (diff)
downloadqemu-e86787d33baac07f4a8bf22c4ed253f11fae167e.zip
qemu-e86787d33baac07f4a8bf22c4ed253f11fae167e.tar.gz
qemu-e86787d33baac07f4a8bf22c4ed253f11fae167e.tar.bz2
target/i386: Convert to 3-phase reset
Convert the i386 CPU class to use 3-phase reset, so it doesn't need to use device_class_set_parent_reset() any more. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Reviewed-by: Cédric Le Goater <clg@kaod.org> Reviewed-by: Edgar E. Iglesias <edgar@zeroasic.com> Reviewed-by: Taylor Simpson <tsimpson@quicinc.com> Message-id: 20221124115023.2437291-7-peter.maydell@linaro.org
Diffstat (limited to 'target/i386/cpu-qom.h')
-rw-r--r--target/i386/cpu-qom.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/i386/cpu-qom.h b/target/i386/cpu-qom.h
index c557a52..2350f4a 100644
--- a/target/i386/cpu-qom.h
+++ b/target/i386/cpu-qom.h
@@ -42,7 +42,7 @@ typedef struct X86CPUModel X86CPUModel;
* @migration_safe: See CpuDefinitionInfo::migration_safe
* @static_model: See CpuDefinitionInfo::static
* @parent_realize: The parent class' realize handler.
- * @parent_reset: The parent class' reset handler.
+ * @parent_phases: The parent class' reset phase handlers.
*
* An x86 CPU model or family.
*/
@@ -67,7 +67,7 @@ struct X86CPUClass {
DeviceRealize parent_realize;
DeviceUnrealize parent_unrealize;
- DeviceReset parent_reset;
+ ResettablePhases parent_phases;
};