target-ppc: Fix PPC_DUMP_SPR_ACCESS build

A victim of the d523dd00a7d73b28f2e99acf45a4b3f92e56e40a AREG0
conversion, insert the missing cpu_env arguments.

Cc: Blue Swirl <blauwirbel@gmail.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
target-ppc: Move PPC_DUMP_CPU to translate.c

There's an opcode handler field dependent on PPC_DUMP_CPU without which
the build fails.

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

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.

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>