]> git.proxmox.com Git - mirror_qemu.git/commit
cputlb: modernise the debug support
authorAlex Bennée <alex.bennee@linaro.org>
Tue, 15 Mar 2016 14:30:24 +0000 (14:30 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 22 Mar 2016 21:20:18 +0000 (22:20 +0100)
commit8526e1f4e418443a4d6ed0714487e47d45ef9c98
tree3f5728d2c2d7311234b426df77cc8355e34c9c06
parentf6880b7f48ffd4aa038d7a964a3820b1c18d5307
cputlb: modernise the debug support

To avoid cluttering the code with #ifdef legs we wrap up the print
statements into a tlb_debug() macro. As access to the virtual TLB can
get quite heavy defining DEBUG_TLB_LOG will ensure all the logs go to
the qemu_log target of CPU_LOG_MMU instead of stderr. This remains
compile time optional as these debug statements haven't been considered
for usefulness for user visible logging.

I've also removed DEBUG_TLB_CHECK which wasn't used.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Richard Henderson <rth@twiddle.net>
Message-Id: <1458052224-9316-11-git-send-email-alex.bennee@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
cputlb.c