[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [RFC] 64 bit device I/O
From: |
Paul Brook |
Subject: |
Re: [Qemu-devel] [RFC] 64 bit device I/O |
Date: |
Wed, 25 Feb 2009 11:55:57 +0000 |
User-agent: |
KMail/1.9.9 |
> > Would it be better to use a structure with four elements with correct
> > types (including uint8/16_t) instead of the cast? This could also be
> > limited to only cpu_register_io_memory64.
>
> This is what I would prefer and is what the first version of this patch
> that I submitted a year ago did: http://landley.net/qemu/2008-01-01.html
>
> The problem is that every hardware driver would need to be changed and
> some of them would need to be changed drastically because they use the
> same functions for all three data sizes.
You can always use the same prototype for the first 3 functions. In practice
there's very little benefit for using types smaller than 32-bit on machines
capable of runnit qemu.
Paul