qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH v2 06/11] lm32_sys: convert to memory API


From: Avi Kivity
Subject: Re: [Qemu-devel] [PATCH v2 06/11] lm32_sys: convert to memory API
Date: Tue, 22 Nov 2011 19:36:56 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20111115 Thunderbird/8.0

On 11/22/2011 06:32 PM, Benoît Canet wrote:
>  
> -static CPUReadMemoryFunc * const sys_read_fn[] = {
> -    NULL,
> -    NULL,
> -    NULL,
> -};
> -
> -static CPUWriteMemoryFunc * const sys_write_fn[] = {
> -    NULL,
> -    NULL,
> -    &sys_write,
> +static const MemoryRegionOps sys_ops = {
> +    .old_mmio = {
> +        .read = { NULL, NULL, NULL, },
> +        .write = { NULL, NULL, sys_write, },
> +    },
> +    .endianness = DEVICE_NATIVE_ENDIAN,
>  };

Please use .valid.accepts for cases like this.

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




reply via email to

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