qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 06/16] Avoid range comparisons on io index types


From: Avi Kivity
Subject: Re: [Qemu-devel] [PATCH 06/16] Avoid range comparisons on io index types
Date: Tue, 03 Jan 2012 10:46:38 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20111115 Thunderbird/8.0

On 01/02/2012 11:58 PM, Richard Henderson wrote:
> On 01/03/2012 03:33 AM, Avi Kivity wrote:
> > -    if ((pd & ~TARGET_PAGE_MASK) > IO_MEM_ROM && !(pd & IO_MEM_ROMD)) {
> > +    if (!is_ram_rom(pd) && !(pd & IO_MEM_ROMD)) {
> >          /* IO memory case (romd handled later) */
>
> Perhaps (!is_ram_rom_romd(pd))?

Yeah, will change.

> At least that's what I see from DeMorgan's, even though it
> doesn't quite seem to tally with the comment...

The comment actually fits both (!is_ram_rom && !is_romd()) and
(!is_ram_rom && is_romd()), since romd acts like both rom and I/O
memory.  The code appears to be correct.

-- 
error compiling committee.c: too many arguments to function




reply via email to

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