target-sparc: Fix debug output for DEBUG_MMU

Signed-off-by: Andreas Färber <afaerber@suse.de>
target-cris/helper.c: Update Coding Style

Reindent, add missing braces and drop/adjust whitespace.

Prepares for CPUArchState-to-CPUState field movements in
cpu_cris_handle_mmu_fault(), do_interruptv10() and do_interrupt().
The remaining functions were so minor that they can be fixed in one go.

Signed-off-by: Andreas Färber <afaerber@suse.de>
target-cris/mmu.c: Update Coding Style of cris_mmu_translate_page()

Reindent, add braces, adjust whitespace.

Prepares for touching the logging macros.

Signed-off-by: Andreas Färber <afaerber@suse.de>
log: Introduce qemu_log_mask_vprintf()

Corresponds to existing qemu_log_vprintf() but uses a mask.

Signed-off-by: Andreas Färber <afaerber@suse.de>
target-alpha: Refactor debug output macros

Make LOG_DISAS() arguments compile-testable even if disabled.

Signed-off-by: Andreas Färber <afaerber@suse.de>
target-cris: Refactor debug output macros

Make debug output compile-testable even if disabled.

Introduce DPRINTF() in helper.c and consolidate stdout and stderr
output.
Introduce DPRINTF() in mmu.c and inline remaining D(x).
Drop unused D(x) macro in op_helper.c.

Signed-off-by: Andreas Färber <afaerber@suse.de>
target-i386: Refactor debug output macros

Make debug output compile-testable even if disabled.

Signed-off-by: Andreas Färber <afaerber@suse.de>
Cc: Richard Henderson <rth@twiddle.net>
target-lm32: Refactor debug output macros

Already enabled and thus compile-tested, but align with other targets.

Signed-off-by: Andreas Färber <afaerber@suse.de>
target-microblaze: Refactor debug output macros

Make debug output compile-testable even if disabled.

Drop unused D(x) macros.

Signed-off-by: Andreas Färber <afaerber@suse.de>
target-openrisc: Refactor debug output macros

Make debug output compile-testable even if disabled.

Signed-off-by: Andreas Färber <afaerber@suse.de>
target-ppc: Refactor debug output macros

Make debug output compile-testable even if disabled.

Inline DEBUG_OP check in excp_helper.c.
Inline LOG_MMU_STATE() in mmu_helper.c.
Inline PPC_DEBUG_SPR check in translate_init.c.

Signed-off-by: Andreas Färber <afaerber@suse.de>
target-s390x: Refactor debug output macros

Make debug output compile-testable even if disabled.

Inline S390X_DEBUG_DISAS in translate.c.

Signed-off-by: Andreas Färber <afaerber@suse.de>
target-sparc: Refactor debug output macros

Make debug output compile-testable even if disabled.

Inline DEBUG_FEATURES and introduce FEATURES_DPRINTF() in cpu.c.
Inline DEBUG_MMU in ldst_helper.c but leave DPRINTF_MMU() outside.
Inline DEBUG_{MXCC,ASI} in ldst_helper.c.

Signed-off-by: Andreas Färber <afaerber@suse.de>
target-unicore32: Refactor debug output macros

Make debug output compile-testable even if disabled.

Signed-off-by: Andreas Färber <afaerber@suse.de>