OSDN Git Service

accel/tcg: Restrict page_collection structure to system TB maintainance
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 9 Dec 2022 09:36:49 +0000 (10:36 +0100)
committerRichard Henderson <richard.henderson@linaro.org>
Wed, 21 Dec 2022 01:11:12 +0000 (17:11 -0800)
commit811242654934bd4613634235ef6a8219792ab088
tree207e418855c7c39dc7ad3b8e770377a7b3373aba
parentf349e92e8edc66b6d4cfc4a0981da6d510fef683
accel/tcg: Restrict page_collection structure to system TB maintainance

Only the system emulation part of TB maintainance uses the
page_collection structure. Restrict its declaration (and the
functions requiring it) to tb-maint.c.

Convert the 'len' argument of tb_invalidate_phys_page_fast__locked()
from signed to unsigned.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20221209093649.43738-6-philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
accel/tcg/internal.h
accel/tcg/tb-maint.c