tb-maint: Document #ifdef..else..endif correctly
PATCH 1/1 tb-maint: Document #ifdef..else..endif correctly
It was hard to tell from the comments whether the code applied to user mode (CONFIG_USER_ONLY) or system mode. Fix the comments on the #else and #endif directives to be clearer.
Signed-off-by Richard W.M. Jones <[email protected]>
--- accel/tcg/tb-maint.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
accel/tcg/tb-maint.c +2 -2
@@ -156,7 +156,7 @@ static PageForEachNext foreach_tb_next(PageForEachNext tb, return NULL; } -#else +#else /* !CONFIG_USER_ONLY */ /* * In system mode we want L1_MAP to be based on ram offsets. */
@@ -722,7 +722,7 @@ static void page_unlock_tb(const TranslationBlock *tb) } } } -#endif /* CONFIG_USER_ONLY */ +#endif /* !CONFIG_USER_ONLY */ /* flush all the translation blocks */ static void do_tb_flush (CPUState *cpu,run_on_cpu_data tb_flush_count)
Signature · 1 line
2.41.0
Quoted 8 lines · Richard W.M. Jones
It was hard to tell from the comments whether the code applied to user mode (
CONFIG_USER_ONLY) or system mode. Fix the comments on the #else and #endif directives to be clearer.Signed-off-by Richard W.M. Jones <[email protected]>--- accel/tcg/tb-maint.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Reviewed-by Philippe Mathieu-Daudé <[email protected]>