[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH for-6.0 1/2] memory: Add offset_in_region to flatview_cb argu
From: |
Philippe Mathieu-Daudé |
Subject: |
Re: [PATCH for-6.0 1/2] memory: Add offset_in_region to flatview_cb arguments |
Date: |
Fri, 12 Mar 2021 21:09:24 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.0 |
On 3/12/21 6:29 PM, Peter Maydell wrote:
> The function flatview_for_each_range() calls a callback for each
> range in a FlatView. Currently the callback gets the start and
> length of the range and the MemoryRegion involved, but not the offset
> within the MemoryRegion. Add this to the callback's arguments; we're
> going to want it for a new use in the next commit.
>
> While we're editing the flatview_cb typedef, add names for the
> arguments that were missing names.
>
> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
> ---
> include/exec/memory.h | 4 +++-
> softmmu/memory.c | 3 ++-
> tests/qtest/fuzz/generic_fuzz.c | 4 +++-
> 3 files changed, 8 insertions(+), 3 deletions(-)
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>