qemu-trivial
[Top][All Lists]
Advanced

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

[Qemu-trivial] [PATCH 18/29] nios2: use QEMU_IS_ALIGNED macro


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

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

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

diff --git a/target/nios2/translate.c b/target/nios2/translate.c
index 2f3c2e5dfb..250ac9cce5 100644
--- a/target/nios2/translate.c
+++ b/target/nios2/translate.c
@@ -925,7 +925,7 @@ void nios2_cpu_dump_state(CPUState *cs, FILE *f, 
fprintf_function cpu_fprintf,
 
     for (i = 0; i < NUM_CORE_REGS; i++) {
         cpu_fprintf(f, "%9s=%8.8x ", regnames[i], env->regs[i]);
-        if ((i + 1) % 4 == 0) {
+        if (QEMU_IS_ALIGNED(i + 1, 4)) {
             cpu_fprintf(f, "\n");
         }
     }
-- 
2.13.2




reply via email to

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