Applied using the Coccinelle semantic patch scripts/coccinelle/use_osdep.cocci
Signed-off-by: Philippe Mathieu-Daudé <f4...@amsat.org> --- target/cris/translate.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/target/cris/translate.c b/target/cris/translate.c index 0ee05ca02d..46afdff145 100644 --- a/target/cris/translate.c +++ b/target/cris/translate.c @@ -3332,14 +3332,14 @@ void cris_cpu_dump_state(CPUState *cs, FILE *f, fprintf_function cpu_fprintf, for (i = 0; i < 16; i++) { cpu_fprintf(f, "%s=%8.8x ", regnames[i], env->regs[i]); - if ((i + 1) % 4 == 0) { + if (QEMU_IS_ALIGNED(i + 1, 4)) { cpu_fprintf(f, "\n"); } } cpu_fprintf(f, "\nspecial regs:\n"); for (i = 0; i < 16; i++) { cpu_fprintf(f, "%s=%8.8x ", pregnames[i], env->pregs[i]); - if ((i + 1) % 4 == 0) { + if (QEMU_IS_ALIGNED(i + 1, 4)) { cpu_fprintf(f, "\n"); } } @@ -3350,7 +3350,7 @@ void cris_cpu_dump_state(CPUState *cs, FILE *f, fprintf_function cpu_fprintf, for (i = 0; i < 16; i++) { cpu_fprintf(f, "s%2.2d=%8.8x ", i, env->sregs[srs][i]); - if ((i + 1) % 4 == 0) { + if (QEMU_IS_ALIGNED(i + 1, 4)) { cpu_fprintf(f, "\n"); } } -- 2.13.2