Commit 7c48011b451f1a80cc98d99b796d41c97c96bcd1

Authored by bellard
1 parent 8dd4983c

added back loglevel test


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1442 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 12 additions and 4 deletions
target-ppc/op_helper_mem.h
... ... @@ -4,8 +4,10 @@ void glue(do_lsw, MEMSUFFIX) (int dst)
4 4 int sh;
5 5  
6 6 #if 0
7   - fprintf(logfile, "%s: addr=0x%08x count=%d reg=%d\n",
8   - __func__, T0, T1, dst);
  7 + if (loglevel > 0) {
  8 + fprintf(logfile, "%s: addr=0x%08x count=%d reg=%d\n",
  9 + __func__, T0, T1, dst);
  10 + }
9 11 #endif
10 12 for (; T1 > 3; T1 -= 4, T0 += 4) {
11 13 ugpr(dst++) = glue(ldl, MEMSUFFIX)(T0);
... ... @@ -26,8 +28,10 @@ void glue(do_stsw, MEMSUFFIX) (int src)
26 28 int sh;
27 29  
28 30 #if 0
29   - fprintf(logfile, "%s: addr=0x%08x count=%d reg=%d\n",
30   - __func__, T0, T1, src);
  31 + if (loglevel > 0) {
  32 + fprintf(logfile, "%s: addr=0x%08x count=%d reg=%d\n",
  33 + __func__, T0, T1, src);
  34 + }
31 35 #endif
32 36 for (; T1 > 3; T1 -= 4, T0 += 4) {
33 37 glue(stl, MEMSUFFIX)(T0, ugpr(src++));
... ... @@ -46,8 +50,10 @@ void glue(do_lsw_le, MEMSUFFIX) (int dst)
46 50 int sh;
47 51  
48 52 #if 0
  53 + if (loglevel > 0) {
49 54 fprintf(logfile, "%s: addr=0x%08x count=%d reg=%d\n",
50 55 __func__, T0, T1, dst);
  56 + }
51 57 #endif
52 58 for (; T1 > 3; T1 -= 4, T0 += 4) {
53 59 tmp = glue(ldl, MEMSUFFIX)(T0);
... ... @@ -71,8 +77,10 @@ void glue(do_stsw_le, MEMSUFFIX) (int src)
71 77 int sh;
72 78  
73 79 #if 0
  80 + if (loglevel > 0) {
74 81 fprintf(logfile, "%s: addr=0x%08x count=%d reg=%d\n",
75 82 __func__, T0, T1, src);
  83 + }
76 84 #endif
77 85 for (; T1 > 3; T1 -= 4, T0 += 4) {
78 86 tmp = ((ugpr(src++) & 0xFF000000) >> 24);
... ...