Skip to content
  • Alex Bennée's avatar
    cputlb: modernise the debug support · 8526e1f4
    Alex Bennée authored
    
    
    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: default avatarAlex Bennée <alex.bennee@linaro.org>
    Reviewed-by: default avatarRichard Henderson <rth@twiddle.net>
    Message-Id: <1458052224-9316-11-git-send-email-alex.bennee@linaro.org>
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    8526e1f4