qemu-trivial
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-trivial] [PATCH 13/29] tcg: use QEMU_IS_ALIGNED macro


From: Philippe Mathieu-Daudé
Subject: [Qemu-trivial] [PATCH 13/29] tcg: use QEMU_IS_ALIGNED macro
Date: Tue, 18 Jul 2017 03:09:49 -0300

Applied using the Coccinelle semantic patch scripts/coccinelle/use_osdep.cocci

Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
---
 accel/tcg/translate-all.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/accel/tcg/translate-all.c b/accel/tcg/translate-all.c
index 4e1831cbb9..9011618157 100644
--- a/accel/tcg/translate-all.c
+++ b/accel/tcg/translate-all.c
@@ -151,7 +151,7 @@ static void page_table_config_init(void)
     v_l2_levels = v_l1_shift / V_L2_BITS - 1;
 
     assert(v_l1_bits <= V_L1_MAX_BITS);
-    assert(v_l1_shift % V_L2_BITS == 0);
+    assert(QEMU_IS_ALIGNED(v_l1_shift, V_L2_BITS));
     assert(v_l2_levels >= 0);
 }
 
-- 
2.13.2




reply via email to

[Prev in Thread] Current Thread [Next in Thread]