qemu-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-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.

Acked-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
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>
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) macros in op_helper.c and translate.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

Debug output is already enabled and thus compile-testable, but align
with other targets.

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

Make debug output compile-testable even if disabled.

Rename dprintf() in kvm.c to kvm_dprintf() to avoid conflict with glibc.

Inline DEBUG_OP check in excp_helper.c.
Inline LOG_MMU_STATE() in mmu_helper.c.
Inline PPC_{DEBUG_SPR,DUMP_SPR_ACCESSES} checks 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.

Rename dprintf() in kvm.c to kvm_dprintf() due to a conflict with glibc.

Drop unused DEBUG_HELPER and LOG_HELPER() in fpu_helper.c.
Drop unused LOG_DISAS() in translate.c and inline S390X_DEBUG_DISAS.

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_printf() in cpu.c.
Inline DEBUG_MMU in ldst_helper.c but leave DPRINTF_MMU() as is due
to "MMU: " prefix.
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>