mirror of
https://github.com/mii443/qemu.git
synced 2025-08-22 23:25:48 +00: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:
@ -267,7 +267,7 @@ abi_long do_freebsd_sysarch(void *cpu_env, abi_long arg1, abi_long arg2);
|
||||
|
||||
static inline bool access_ok(int type, abi_ulong addr, abi_ulong size)
|
||||
{
|
||||
return page_check_range((target_ulong)addr, size, type) == 0;
|
||||
return page_check_range((target_ulong)addr, size, type);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user