* sky-dma.h, sky-gpuif.[c|h], sky-gs.h, sky-pke.[c|h],
authorPatrick Macdonald <patrickm@redhat.com>
Mon, 22 Jun 1998 15:08:58 +0000 (15:08 +0000)
committerPatrick Macdonald <patrickm@redhat.com>
Mon, 22 Jun 1998 15:08:58 +0000 (15:08 +0000)
sky-vu.h: use _IOLBF on debug files, _IOFBF on trace files
* sky-gdb.[c|h] (sky_open_file()): add buffer mode to
parameter list

sim/mips/sky-pke.c
sim/mips/sky-pke.h

index 804b37ba34c7a6a32ffeec7056ded80f335da7b3..f6dafec929cf3373b0ca167e388ec1a1db57770c 100644 (file)
@@ -898,7 +898,7 @@ pke_pc_advance(struct pke_device* me, int num_words)
          if (( me->fifo_trace_file == NULL) &&
              ( me->fifo_trace_file_name != NULL ))
            sky_open_file (&me->fifo_trace_file, me->fifo_trace_file_name,
-                         (char *) NULL);
+                         (char *) NULL, _IOLBF );
 
          /* assert complete classification */
               ASSERT(fq->word_class[3] != wc_unknown);
index 27347e1ef556002b7515bad1e937c66c8d5d743f..df804510c3a81e80f6bb57e6cacd8771b8d27a4d 100644 (file)
@@ -338,7 +338,7 @@ do { \
                  ((me)->fifo_trace_file_name != NULL )) \
                sky_open_file (&((me)->fifo_trace_file), \
                               (me)->fifo_trace_file_name, \
-                              (char *) NULL); \
+                              (char *) NULL, _IOLBF ); \
              fprintf (((me)->fifo_trace_file != NULL) ? \
                       (me)->fifo_trace_file : stdout, \
                       "# Reg %s:%s = 0x%x\n", #reg, #flag, (unsigned)(value)); \
@@ -472,7 +472,7 @@ int read_pke_pcx (struct pke_device *device, void *buf);
                  ((me)->fifo_trace_file_name != NULL )) \
                sky_open_file (&((me)->fifo_trace_file), \
                               (me)->fifo_trace_file_name, \
-                              (char *) NULL); \
+                              (char *) NULL, _IOLBF ); \
              fprintf (((me)->fifo_trace_file != NULL) ? \
                       (me)->fifo_trace_file : stdout, \
                       "# Write %2d bytes  to  ", size); \