[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-ppc] [PATCH 1/3] ppc: fix MSR_ME handling for system reset int
From: |
Cédric Le Goater |
Subject: |
Re: [Qemu-ppc] [PATCH 1/3] ppc: fix MSR_ME handling for system reset interrupt |
Date: |
Thu, 20 Oct 2016 12:23:55 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 |
On 10/20/2016 08:59 AM, Nicholas Piggin wrote:
> Power ISA specifies ME bit handling for system reset interrupt:
>
> if the interrupt occurred while the thread was in power-saving
> mode, set to 1; otherwise not altered
>
> Signed-off-by: Nicholas Piggin <address@hidden>
Reviewed-by: Cédric Le Goater <address@hidden>
> ---
> target-ppc/excp_helper.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/target-ppc/excp_helper.c b/target-ppc/excp_helper.c
> index 921c39d..53c4075 100644
> --- a/target-ppc/excp_helper.c
> +++ b/target-ppc/excp_helper.c
> @@ -385,11 +385,11 @@ static inline void powerpc_excp(PowerPCCPU *cpu, int
> excp_model, int excp)
> srr1 = SPR_BOOKE_CSRR1;
> break;
> case POWERPC_EXCP_RESET: /* System reset exception
> */
> + /* A power-saving exception sets ME, otherwise it is unchanged */
> if (msr_pow) {
> /* indicate that we resumed from power save mode */
> msr |= 0x10000;
> - } else {
> - new_msr &= ~((target_ulong)1 << MSR_ME);
> + new_msr |= ((target_ulong)1 << MSR_ME);
> }
>
> new_msr |= (target_ulong)MSR_HVB;
>
- Re: [Qemu-ppc] [PATCH 2/3] ppc: allow system reset interrupt to be delivered to guests, (continued)
- Re: [Qemu-ppc] [PATCH 2/3] ppc: allow system reset interrupt to be delivered to guests, Cédric Le Goater, 2016/10/20
- Re: [Qemu-ppc] [PATCH 2/3] ppc: allow system reset interrupt to be delivered to guests, Nicholas Piggin, 2016/10/20
- Re: [Qemu-ppc] [PATCH 2/3] ppc: allow system reset interrupt to be delivered to guests, David Gibson, 2016/10/20
- [Qemu-ppc] [PATCH v2] ppc: allow certain HV interrupts to be delivered to guests, Nicholas Piggin, 2016/10/21
- Re: [Qemu-ppc] [PATCH v2] ppc: allow certain HV interrupts to be delivered to guests, Cédric Le Goater, 2016/10/21
- Re: [Qemu-ppc] [PATCH v2] ppc: allow certain HV interrupts to be delivered to guests, David Gibson, 2016/10/23
- Re: [Qemu-ppc] [PATCH v2] ppc: allow certain HV interrupts to be delivered to guests, Nicholas Piggin, 2016/10/24
- Re: [Qemu-ppc] [PATCH v2] ppc: allow certain HV interrupts to be delivered to guests, David Gibson, 2016/10/24
[Qemu-ppc] [PATCH 1/3] ppc: fix MSR_ME handling for system reset interrupt, Nicholas Piggin, 2016/10/20
[Qemu-ppc] [PATCH 3/3] ppc/spapr: implement H_SIGNAL_SYS_RESET, Nicholas Piggin, 2016/10/20
Re: [Qemu-ppc] (no subject), Greg Kurz, 2016/10/20