]> Git Repo - qemu.git/commit
cputlb: modernise the debug support
authorAlex Bennée <[email protected]>
Tue, 15 Mar 2016 14:30:24 +0000 (14:30 +0000)
committerPaolo Bonzini <[email protected]>
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 <[email protected]>
Reviewed-by: Richard Henderson <[email protected]>
Message-Id: <1458052224[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
cputlb.c
This page took 0.026222 seconds and 4 git commands to generate.