diff options
author | Andrew Cagney <cagney@redhat.com> | 1998-03-11 11:57:55 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 1998-03-11 11:57:55 +0000 |
commit | 10572b6a43dcf96c17a10d515b113840dd0b1f7f (patch) | |
tree | 441cd847f6ba08641920118982ff6b0b98e90479 | |
parent | e08480287d9abc147c4971a885e101e09ea7cfa1 (diff) | |
download | gdb-10572b6a43dcf96c17a10d515b113840dd0b1f7f.zip gdb-10572b6a43dcf96c17a10d515b113840dd0b1f7f.tar.gz gdb-10572b6a43dcf96c17a10d515b113840dd0b1f7f.tar.bz2 |
* 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.
-rw-r--r-- | sim/mips/sky-pke.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/sim/mips/sky-pke.c b/sim/mips/sky-pke.c index 011db64..f0e4640 100644 --- a/sim/mips/sky-pke.c +++ b/sim/mips/sky-pke.c @@ -5,6 +5,8 @@ #define PKE_DEBUG +#include "config.h" + #include <stdlib.h> #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 <string.h> +#else +#ifdef HAVE_STRINGS_H +#include <strings.h> +#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 */ |