qemu-arm
[Top][All Lists]
Advanced

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

Re: [PATCH v3 3/5] target/arm/cpu: Use ARRAY_SIZE() to iterate over ARMC


From: Richard Henderson
Subject: Re: [PATCH v3 3/5] target/arm/cpu: Use ARRAY_SIZE() to iterate over ARMCPUInfo[]
Date: Mon, 4 May 2020 11:08:22 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0

On 5/4/20 10:24 AM, Philippe Mathieu-Daudé wrote:
> +    if (cpu_count) {
> +        size_t i;
> +
> +        for (i = 0; i < cpu_count; ++i) {
> +            arm_cpu_register(&arm_cpus[i]);
> +        }
> +    }

You can use int instead of size_t to avoid the i < 0 type warning.


r~



reply via email to

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