diff mbox series

[RFC,04/34] exec: [PAGE_VARY] Unpoison TARGET_PAGE_* macros for system mode

Message ID 20240119144024.14289-5-anjo@rev.ng (mailing list archive)
State New, archived
Headers show
Series Compile accel/tcg once (partially) | expand

Commit Message

Anton Johansson Jan. 19, 2024, 2:39 p.m. UTC
TARGET_PAGE_* are now target-independent for softmmu targets, and can
safely be accessed common code.

Signed-off-by: Anton Johansson <anjo@rev.ng>
---
 include/exec/poison.h | 2 ++
 1 file changed, 2 insertions(+)

Comments

Richard Henderson Jan. 23, 2024, 10:20 p.m. UTC | #1
On 1/20/24 00:39, Anton Johansson wrote:
> TARGET_PAGE_* are now target-independent for softmmu targets, and can
> safely be accessed common code.
> 
> Signed-off-by: Anton Johansson <anjo@rev.ng>

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

r~
diff mbox series

Patch

diff --git a/include/exec/poison.h b/include/exec/poison.h
index 1ea5633eb3..6d87954a91 100644
--- a/include/exec/poison.h
+++ b/include/exec/poison.h
@@ -46,10 +46,12 @@ 
 #pragma GCC poison TARGET_FMT_ld
 #pragma GCC poison TARGET_FMT_lu
 
+#ifdef CONFIG_USER_ONLY
 #pragma GCC poison TARGET_PAGE_SIZE
 #pragma GCC poison TARGET_PAGE_MASK
 #pragma GCC poison TARGET_PAGE_BITS
 #pragma GCC poison TARGET_PAGE_ALIGN
+#endif
 
 #pragma GCC poison CPU_INTERRUPT_HARD
 #pragma GCC poison CPU_INTERRUPT_EXITTB