From: Fabien Chouteau <chouteau@adacore.com>
To: Avi Kivity <avi@redhat.com>
Cc: blauwirbel@gmail.com, qemu-devel@nongnu.org, atar4qemu@gmail.com
Subject: Re: [Qemu-devel] [PATCH] GRLIB UART: Add RX channel
Date: Thu, 26 Jan 2012 15:05:31 +0100 [thread overview]
Message-ID: <4F215DAB.2030407@adacore.com> (raw)
In-Reply-To: <4F215B3C.7080003@redhat.com>
On 26/01/2012 14:55, Avi Kivity wrote:
> On 01/26/2012 03:45 PM, Fabien Chouteau wrote:
>> @@ -141,18 +219,19 @@ grlib_apbuart_write(void *opaque, target_phys_addr_t addr,
>> static bool grlib_apbuart_accepts(void *opaque, target_phys_addr_t addr,
>> unsigned size, bool is_write)
>> {
>> - return is_write && size == 4;
>> + return size <= 4;
>> }
>
> Please drop this function.
>
>>
>> static const MemoryRegionOps grlib_apbuart_ops = {
>> .write = grlib_apbuart_write,
>> + .read = grlib_apbuart_read,
>> .valid.accepts = grlib_apbuart_accepts,
>
> The default is to accept sizes 1-4, so you can just drop .valid.accepts
> and need not replace it with anything.
OK, thanks.
--
Fabien Chouteau
prev parent reply other threads:[~2012-01-26 14:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-26 13:45 [Qemu-devel] [PATCH] GRLIB UART: Add RX channel Fabien Chouteau
2012-01-26 13:55 ` Avi Kivity
2012-01-26 14:05 ` Fabien Chouteau [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F215DAB.2030407@adacore.com \
--to=chouteau@adacore.com \
--cc=atar4qemu@gmail.com \
--cc=avi@redhat.com \
--cc=blauwirbel@gmail.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.