diff options
author | Ian Carmichael <iancarm@cygnus> | 1998-02-10 20:08:16 +0000 |
---|---|---|
committer | Ian Carmichael <iancarm@cygnus> | 1998-02-10 20:08:16 +0000 |
commit | 52793fab2fb6f9591d52978d5f268babd2f777cf (patch) | |
tree | b127e685fa204e8bb82080a5b2a57459aecb4829 /sim/mips/sky-pke.c | |
parent | 5023c3ab9c2050d8579b42f4b82296c58dbcbaea (diff) | |
download | gdb-52793fab2fb6f9591d52978d5f268babd2f777cf.zip gdb-52793fab2fb6f9591d52978d5f268babd2f777cf.tar.gz gdb-52793fab2fb6f9591d52978d5f268babd2f777cf.tar.bz2 |
* Many changes to make sky sim build with --enable-sim-warnings.
Diffstat (limited to 'sim/mips/sky-pke.c')
-rw-r--r-- | sim/mips/sky-pke.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/sim/mips/sky-pke.c b/sim/mips/sky-pke.c index 94b6502..f46873b 100644 --- a/sim/mips/sky-pke.c +++ b/sim/mips/sky-pke.c @@ -8,7 +8,6 @@ #include "sky-vu1.h" #include "sky-gpuif.h" - /* Imported functions */ void device_error (device *me, char* message); /* device.c */ @@ -75,13 +74,13 @@ pke1_attach(SIM_DESC sd) /* Issue a PKE instruction if possible */ void -pke0_issue() +pke0_issue(void) { pke_issue(& pke0_device); } void -pke1_issue() +pke1_issue(void) { pke_issue(& pke0_device); } @@ -1313,7 +1312,8 @@ pke_pc_advance(struct pke_device* me, int num_words) unsigned_4* pke_pc_operand(struct pke_device* me, int word_num) { - int new_qw_pc, new_fifo_pc; + int new_qw_pc = 0; + int new_fifo_pc; unsigned_4* operand; ASSERT(word_num > 0); @@ -1345,7 +1345,8 @@ pke_pc_operand(struct pke_device* me, int word_num) struct fifo_quadword* pke_pc_fifo(struct pke_device* me, int word_num) { - int new_qw_pc, new_fifo_pc; + int new_qw_pc = 0; + int new_fifo_pc; struct fifo_quadword* operand; ASSERT(word_num > 0); |