qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] Rename target_phys_addr_t to Phys


From: Peter Maydell
Subject: Re: [Qemu-devel] [PATCH] Rename target_phys_addr_t to Phys
Date: Thu, 5 Jan 2012 00:24:21 +0000

On 5 January 2012 00:16, Anthony Liguori <address@hidden> wrote:
> On 01/04/2012 05:33 PM, Peter Maydell wrote:
>> A lot of the usage of target_phys_addr_t in hw/ is actually not
>> handling addresses at all, but merely offsets into device IO regions
>> (ie as parameters to device read/write functions)...
>
> Exactly, which is why using target_phys_addr_t (and subsequently building
> the device twice) doesn't make a lot of sense.

So should we have a hw_offset type for this? That would cut out a lot
of the noise and let us find out how much code in hw/ is actually
using physaddrs...

-- PMM



reply via email to

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