qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 05/16] translate-all: iterate over TBs in a page


From: Richard Henderson
Subject: Re: [Qemu-devel] [PATCH 05/16] translate-all: iterate over TBs in a page with PAGE_FOR_EACH_TB
Date: Wed, 28 Feb 2018 14:53:00 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0

On 02/28/2018 02:50 PM, Emilio G. Cota wrote:
> Is this any better?
> 
> #define TB_FOR_EACH_TAGGED(head, tb, n, field)                          \
>     for (n = (head) & 1, tb = (TranslationBlock *)((head) & ~1);        \
>          tb; tb = (TranslationBlock *)tb->field[n], n = (uintptr_t)tb & 1, \
>              tb = (TranslationBlock *)((uintptr_t)tb & ~1))

Yes, thanks.


r~



reply via email to

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