hw/core/cpu: expand cpu_reset function docs
Add a hint to the developer that this should only be called from a reset chain. Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Message-ID: <20260219171810.602667-15-alex.bennee@linaro.org> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Alex Bennée committed
Feb 19, 2026 at 17:18 UTC
703bc80f553f19993eaaee249f53386d38f42122
1 file changed
+3
include/hw/core/cpu.h
+3
@@ -815,6 +815,9 @@ void cpu_list_remove(CPUState *cpu);
815
/**
816
* cpu_reset:
817
* @cpu: The CPU whose state is to be reset.
818
+ *
819
+ * You should refrain from calling this during CPU realization and
820
+ * make sure this is called from the reset logic instead.
821
*/
822
void cpu_reset(CPUState *cpu);
823