From 7c48011b451f1a80cc98d99b796d41c97c96bcd1 Mon Sep 17 00:00:00 2001 From: bellard Date: Sun, 5 Jun 2005 14:38:00 +0000 Subject: added back loglevel test git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1442 c046a42c-6fe2-441c-8c8c-71466251a162 --- target-ppc/op_helper_mem.h | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'target-ppc/op_helper_mem.h') diff --git a/target-ppc/op_helper_mem.h b/target-ppc/op_helper_mem.h index 6fc1202429..fb90691f2b 100644 --- a/target-ppc/op_helper_mem.h +++ b/target-ppc/op_helper_mem.h @@ -4,8 +4,10 @@ void glue(do_lsw, MEMSUFFIX) (int dst) int sh; #if 0 - fprintf(logfile, "%s: addr=0x%08x count=%d reg=%d\n", - __func__, T0, T1, dst); + if (loglevel > 0) { + fprintf(logfile, "%s: addr=0x%08x count=%d reg=%d\n", + __func__, T0, T1, dst); + } #endif for (; T1 > 3; T1 -= 4, T0 += 4) { ugpr(dst++) = glue(ldl, MEMSUFFIX)(T0); @@ -26,8 +28,10 @@ void glue(do_stsw, MEMSUFFIX) (int src) int sh; #if 0 - fprintf(logfile, "%s: addr=0x%08x count=%d reg=%d\n", - __func__, T0, T1, src); + if (loglevel > 0) { + fprintf(logfile, "%s: addr=0x%08x count=%d reg=%d\n", + __func__, T0, T1, src); + } #endif for (; T1 > 3; T1 -= 4, T0 += 4) { glue(stl, MEMSUFFIX)(T0, ugpr(src++)); @@ -46,8 +50,10 @@ void glue(do_lsw_le, MEMSUFFIX) (int dst) int sh; #if 0 + if (loglevel > 0) { fprintf(logfile, "%s: addr=0x%08x count=%d reg=%d\n", __func__, T0, T1, dst); + } #endif for (; T1 > 3; T1 -= 4, T0 += 4) { tmp = glue(ldl, MEMSUFFIX)(T0); @@ -71,8 +77,10 @@ void glue(do_stsw_le, MEMSUFFIX) (int src) int sh; #if 0 + if (loglevel > 0) { fprintf(logfile, "%s: addr=0x%08x count=%d reg=%d\n", __func__, T0, T1, src); + } #endif for (; T1 > 3; T1 -= 4, T0 += 4) { tmp = ((ugpr(src++) & 0xFF000000) >> 24); -- cgit v1.2.3