qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 4/4] arm_gic: Use GIC_NR_SGIS constant


From: Christoffer Dall
Subject: Re: [Qemu-devel] [PATCH 4/4] arm_gic: Use GIC_NR_SGIS constant
Date: Mon, 18 Aug 2014 16:14:07 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

On Mon, Aug 18, 2014 at 03:08:00PM +0200, Adam Lackorzynski wrote:
> Use constant rather than a plain number.
> 
> Signed-off-by: Adam Lackorzynski <address@hidden>
> ---
>  hw/intc/arm_gic_common.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/hw/intc/arm_gic_common.c b/hw/intc/arm_gic_common.c
> index 6d884ec..18b01ba 100644
> --- a/hw/intc/arm_gic_common.c
> +++ b/hw/intc/arm_gic_common.c
> @@ -128,7 +128,7 @@ static void arm_gic_common_reset(DeviceState *dev)
>          s->running_priority[i] = 0x100;
>          s->cpu_enabled[i] = false;
>      }
> -    for (i = 0; i < 16; i++) {
> +    for (i = 0; i < GIC_NR_SGIS; i++) {
>          GIC_SET_ENABLED(i, ALL_CPU_MASK);
>          GIC_SET_EDGE_TRIGGER(i);
>      }
> -- 
> 2.1.0.rc1
> 
Acked-by: Christoffer Dall <address@hidden>



reply via email to

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