diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2022-11-24 11:50:19 +0000 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2022-12-16 15:58:16 +0000 |
commit | 90493830024ded23e7f9d3b383edbe74b05a6c75 (patch) | |
tree | 980ba72c45da02bfdaf649b067a34afe1960c3f9 /target/sh4/cpu-qom.h | |
parent | 88c41e4082c01b0b06fb6d781e154deb1a4a2c83 (diff) | |
download | qemu-90493830024ded23e7f9d3b383edbe74b05a6c75.zip qemu-90493830024ded23e7f9d3b383edbe74b05a6c75.tar.gz qemu-90493830024ded23e7f9d3b383edbe74b05a6c75.tar.bz2 |
target/sh4: Convert to 3-phase reset
Convert the sh4 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>
Reviewed-by: Greg Kurz <groug@kaod.org>
Message-id: 20221124115023.2437291-17-peter.maydell@linaro.org
Diffstat (limited to 'target/sh4/cpu-qom.h')
-rw-r--r-- | target/sh4/cpu-qom.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target/sh4/cpu-qom.h b/target/sh4/cpu-qom.h index d4192d1..89785a9 100644 --- a/target/sh4/cpu-qom.h +++ b/target/sh4/cpu-qom.h @@ -34,7 +34,7 @@ OBJECT_DECLARE_CPU_TYPE(SuperHCPU, SuperHCPUClass, SUPERH_CPU) /** * SuperHCPUClass: * @parent_realize: The parent class' realize handler. - * @parent_reset: The parent class' reset handler. + * @parent_phases: The parent class' reset phase handlers. * @pvr: Processor Version Register * @prr: Processor Revision Register * @cvr: Cache Version Register @@ -47,7 +47,7 @@ struct SuperHCPUClass { /*< public >*/ DeviceRealize parent_realize; - DeviceReset parent_reset; + ResettablePhases parent_phases; uint32_t pvr; uint32_t prr; |