qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 0/3] cpus: Avoid re-initializing fields cleared in cpu_common


From: Philippe Mathieu-Daudé
Subject: Re: [PATCH 0/3] cpus: Avoid re-initializing fields cleared in cpu_common_reset_hold()
Date: Thu, 9 Jan 2025 16:31:13 +0100
User-agent: Mozilla Thunderbird

On 30/12/24 16:39, Philippe Mathieu-Daudé wrote:
Having this call tree:

   cpu_reset()
   -> device_cold_reset()
      -> DeviceClass::reset()
         -> target_cpu_reset()
            -> ResettablePhases::hold()
               -> CPUClass::phases::hold()
                  -> cpu_common_reset_hold()

If we call cpu_reset(), common fields will be reset in
cpu_common_reset_hold(), we don't need to manually do it.

Remove the pointless re-assignments on CPUState.
Ping for patches 2 & 3?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]