accel/tcg: Move user-related declarations out of 'exec/cpu-all.h' (3/4)

Move declarations related to page protection under user
emulation from "exec/cpu-all.h" to "user/page-protection.h".

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20241212185341.2857-14-philmd@linaro.org>
This commit is contained in:
Philippe Mathieu-Daudé 2024-12-12 18:08:43 +01:00
parent 62ef949bbc
commit 187b7ca96a
7 changed files with 23 additions and 12 deletions

View file

@ -130,18 +130,6 @@ extern const TargetPageBits target_page;
int page_get_flags(target_ulong address);
/**
* 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);
#endif
CPUArchState *cpu_copy(CPUArchState *env);