[Top][All Lists]

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

Re: [Qemu-arm] [Qemu-devel] [PATCH for-4.1] target/arm: Stop using varia

From: Richard Henderson
Subject: Re: [Qemu-arm] [Qemu-devel] [PATCH for-4.1] target/arm: Stop using variable length array in dc_zva
Date: Thu, 28 Mar 2019 12:14:10 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1

On 3/28/19 7:30 AM, Peter Maydell wrote:
> -        void *hostaddr[maxidx];
> +        void *hostaddr[DIV_ROUND_UP(2 * KiB, 1 << TARGET_PAGE_BITS_MIN)];

A very fancy way of writing "2".

>          int try, i;
>          unsigned mmu_idx = cpu_mmu_index(env, false);
>          TCGMemOpIdx oi = make_memop_idx(MO_UB, mmu_idx);
> +        assert(maxidx <= sizeof(hostaddr));



reply via email to

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