mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
memory: Make flatview_cb return bool, not int
The return value of the flatview_cb callback passed to the flatview_for_each_range() function is zero if the iteration through the ranges should continue, or non-zero to break out of it. Use a bool for this rather than int. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-id: 20210318174823.18066-2-peter.maydell@linaro.org
This commit is contained in:
parent
e6fa978d83
commit
d1e8cf77f1
2 changed files with 7 additions and 7 deletions
|
@ -776,9 +776,9 @@ static inline FlatView *address_space_to_flatview(AddressSpace *as)
|
|||
return qatomic_rcu_read(&as->current_map);
|
||||
}
|
||||
|
||||
typedef int (*flatview_cb)(Int128 start,
|
||||
Int128 len,
|
||||
const MemoryRegion*, void*);
|
||||
typedef bool (*flatview_cb)(Int128 start,
|
||||
Int128 len,
|
||||
const MemoryRegion*, void*);
|
||||
|
||||
void flatview_for_each_range(FlatView *fv, flatview_cb cb , void *opaque);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue