accel/tcg: Remove page_protect

Merge the user-only page_protect function with the user-only
implementation of tb_lock_page0.  This avoids pulling
page-protection.h into tb-internal.h.

Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
Richard Henderson 2025-03-27 16:48:09 -05:00
parent aa6f138aba
commit b103cc6e74
3 changed files with 4 additions and 10 deletions

View file

@ -657,7 +657,7 @@ target_ulong page_find_range_empty(target_ulong min, target_ulong max,
}
}
void page_protect(tb_page_addr_t address)
void tb_lock_page0(tb_page_addr_t address)
{
PageFlagsNode *p;
target_ulong start, last;