diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2022-11-24 11:50:14 +0000 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2022-12-16 15:58:15 +0000 |
commit | 4245a71662648b804ccc19163f44f75d6e92dcad (patch) | |
tree | 344d43f294afba6d15b39ce556ae717f03ff455f /target/nios2/cpu.h | |
parent | c08dfb7ae2bd1a5a22e452c8172a8131778fe77c (diff) | |
download | qemu-4245a71662648b804ccc19163f44f75d6e92dcad.zip qemu-4245a71662648b804ccc19163f44f75d6e92dcad.tar.gz qemu-4245a71662648b804ccc19163f44f75d6e92dcad.tar.bz2 |
target/nios2: Convert to 3-phase reset
Convert the nios2 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-12-peter.maydell@linaro.org
Diffstat (limited to 'target/nios2/cpu.h')
-rw-r--r-- | target/nios2/cpu.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target/nios2/cpu.h b/target/nios2/cpu.h index f85581e..b1a5549 100644 --- a/target/nios2/cpu.h +++ b/target/nios2/cpu.h @@ -37,7 +37,7 @@ OBJECT_DECLARE_CPU_TYPE(Nios2CPU, Nios2CPUClass, NIOS2_CPU) /** * Nios2CPUClass: - * @parent_reset: The parent class' reset handler. + * @parent_phases: The parent class' reset phase handlers. * * A Nios2 CPU model. */ @@ -47,7 +47,7 @@ struct Nios2CPUClass { /*< public >*/ DeviceRealize parent_realize; - DeviceReset parent_reset; + ResettablePhases parent_phases; }; #define TARGET_HAS_ICE 1 |