Add a hint to the developer that this should only be called from a reset chain.
Signed-off-by: Alex Bennée <[email protected]> --- include/hw/core/cpu.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/hw/core/cpu.h b/include/hw/core/cpu.h index f6f17df9e64..9f938e00492 100644 --- a/include/hw/core/cpu.h +++ b/include/hw/core/cpu.h @@ -811,6 +811,9 @@ void cpu_list_remove(CPUState *cpu); /** * cpu_reset: * @cpu: The CPU whose state is to be reset. + * + * You should refrain from calling this during CPU realization and + * make sure this is called from the reset logic instead. */ void cpu_reset(CPUState *cpu); -- 2.47.3
