[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] GRLIB UART: Add RX channel
From: |
Avi Kivity |
Subject: |
Re: [Qemu-devel] [PATCH] GRLIB UART: Add RX channel |
Date: |
Thu, 26 Jan 2012 15:55:08 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:9.0) Gecko/20111222 Thunderbird/9.0 |
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.
> .
--
error compiling committee.c: too many arguments to function