qemu-arm
[Top][All Lists]
Advanced

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

Re: [PATCH] hw/arm/pxa2xx: rebuild hflags cache when modifying CPU state


From: Luc Michel
Subject: Re: [PATCH] hw/arm/pxa2xx: rebuild hflags cache when modifying CPU state
Date: Fri, 1 Nov 2019 11:54:13 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.1.1

On 11/1/19 11:42 AM, Peter Maydell wrote:
> On Fri, 1 Nov 2019 at 10:32, Luc Michel <address@hidden> wrote:
>>
>> This machine modifies the CPU state when simulating suspend mode. This
>> commit adds a missing call to arm_rebuild_hflags after those
>> modifications.
>>
>> Signed-off-by: Luc Michel <address@hidden>
>> ---
>> I came over this missing hflags rebuild while reviewing Edgar's similar
>> fix in hw/arm/boot.c. I could not find any other place where it would be
>> missing but I may be wrong.
> 
> pxa2xx_pwrmode_write() is a cp14 coprocessor register write
> function, so I think that the hflags rebuild that is done by
> translate.c:disas_coproc_insn() after a cp register write
> should already handle this case ?
OK. I missed the fact that it was a co-processor write callback.

> 
> 
> The other place that might need checking is the PSCI/etc
> code for doing CPU power on/off (and other callers to the
> power up/down functions like the imx6 power control regs).
> Richard, did you look at that code to see if it needed hflags updates?
> 
> thanks
> -- PMM
> 



reply via email to

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