mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
accel/tcg: Return bool from page_check_range
Replace the 0/-1 result with true/false. Invert the sense of the test of all callers. Document the function. Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20230707204054.8792-25-richard.henderson@linaro.org>
This commit is contained in:
parent
91e9e116fe
commit
bef6f008b9
9 changed files with 31 additions and 20 deletions
|
@ -222,7 +222,18 @@ int walk_memory_regions(void *, walk_memory_regions_fn);
|
|||
int page_get_flags(target_ulong address);
|
||||
void page_set_flags(target_ulong start, target_ulong last, int flags);
|
||||
void page_reset_target_data(target_ulong start, target_ulong last);
|
||||
int page_check_range(target_ulong start, target_ulong len, int flags);
|
||||
|
||||
/**
|
||||
* page_check_range
|
||||
* @start: first byte of range
|
||||
* @len: length of range
|
||||
* @flags: flags required for each page
|
||||
*
|
||||
* Return true if every page in [@start, @start+@len) has @flags set.
|
||||
* Return false if any page is unmapped. Thus testing flags == 0 is
|
||||
* equivalent to testing for flags == PAGE_VALID.
|
||||
*/
|
||||
bool page_check_range(target_ulong start, target_ulong last, int flags);
|
||||
|
||||
/**
|
||||
* page_check_range_empty:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue