From 10572b6a43dcf96c17a10d515b113840dd0b1f7f Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Wed, 11 Mar 1998 11:57:55 +0000 Subject: [PATCH] * sky-gdb.c (vu_option_handler): Delete unused local unit. (log_option_handler): Delete extra arg from printf, twice. * sky-pke.c (config.h): Include. (string.h, strings.h): Include. (pke_issue): Delete unused locals imm, num * sky-libvpe.c: Pacify GCC. * sky-gpuif.c (gif_io_write_buffer): Pacify GCC. * sky-dma.c (config.h): Include. (string.h, strings.h): Include. (dma_io_read_buffer): Pacify GCC. (dma_io_write_buffer): Pacify GCC. Initialize pmem before first use. (do_dma_transfer): Delete unused local variables qwbuf and local. --- sim/mips/sky-pke.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/sim/mips/sky-pke.c b/sim/mips/sky-pke.c index 011db64c15c..f0e46407830 100644 --- a/sim/mips/sky-pke.c +++ b/sim/mips/sky-pke.c @@ -5,6 +5,8 @@ #define PKE_DEBUG +#include "config.h" + #include #include "sky-pke.h" #include "sky-dma.h" @@ -15,6 +17,14 @@ #include "sky-gpuif.h" #include "sky-device.h" +#ifdef HAVE_STRING_H +#include +#else +#ifdef HAVE_STRINGS_H +#include +#endif +#endif + /* Internal function declarations */ @@ -519,8 +529,7 @@ pke_issue(SIM_DESC sd, struct pke_device* me) { struct fifo_quadword* fqw; unsigned_4 fw; - unsigned_4 cmd, intr, num; - unsigned_4 imm; + unsigned_4 cmd, intr; /* 1 -- fetch PKE instruction */ -- 2.30.2