mirror of https://gitee.com/openkylin/qemu.git
Fix debug statements
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3525 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
056401eae6
commit
ab3d1727d1
14
exec.c
14
exec.c
|
@ -339,10 +339,10 @@ void tb_flush(CPUState *env1)
|
|||
{
|
||||
CPUState *env;
|
||||
#if defined(DEBUG_FLUSH)
|
||||
printf("qemu: flush code_size=%d nb_tbs=%d avg_tb_size=%d\n",
|
||||
code_gen_ptr - code_gen_buffer,
|
||||
nb_tbs,
|
||||
nb_tbs > 0 ? (code_gen_ptr - code_gen_buffer) / nb_tbs : 0);
|
||||
printf("qemu: flush code_size=%ld nb_tbs=%d avg_tb_size=%ld\n",
|
||||
(unsigned long)(code_gen_ptr - code_gen_buffer),
|
||||
nb_tbs, nb_tbs > 0 ?
|
||||
((unsigned long)(code_gen_ptr - code_gen_buffer)) / nb_tbs : 0);
|
||||
#endif
|
||||
nb_tbs = 0;
|
||||
|
||||
|
@ -889,7 +889,7 @@ static inline void tb_alloc_page(TranslationBlock *tb,
|
|||
mprotect(g2h(page_addr), qemu_host_page_size,
|
||||
(prot & PAGE_BITS) & ~PAGE_WRITE);
|
||||
#ifdef DEBUG_TB_INVALIDATE
|
||||
printf("protecting code page: 0x%08lx\n",
|
||||
printf("protecting code page: 0x" TARGET_FMT_lx "\n",
|
||||
page_addr);
|
||||
#endif
|
||||
}
|
||||
|
@ -2089,7 +2089,7 @@ void qemu_ram_free(ram_addr_t addr)
|
|||
static uint32_t unassigned_mem_readb(void *opaque, target_phys_addr_t addr)
|
||||
{
|
||||
#ifdef DEBUG_UNASSIGNED
|
||||
printf("Unassigned mem read " TARGET_FMT_lx "\n", addr);
|
||||
printf("Unassigned mem read " TARGET_FMT_plx "\n", addr);
|
||||
#endif
|
||||
#ifdef TARGET_SPARC
|
||||
do_unassigned_access(addr, 0, 0, 0);
|
||||
|
@ -2102,7 +2102,7 @@ static uint32_t unassigned_mem_readb(void *opaque, target_phys_addr_t addr)
|
|||
static void unassigned_mem_writeb(void *opaque, target_phys_addr_t addr, uint32_t val)
|
||||
{
|
||||
#ifdef DEBUG_UNASSIGNED
|
||||
printf("Unassigned mem write " TARGET_FMT_lx " = 0x%x\n", addr, val);
|
||||
printf("Unassigned mem write " TARGET_FMT_plx " = 0x%x\n", addr, val);
|
||||
#endif
|
||||
#ifdef TARGET_SPARC
|
||||
do_unassigned_access(addr, 1, 0, 0);
|
||||
|
|
Loading…
Reference in New Issue