aboutsummaryrefslogtreecommitdiff
path: root/sim/mips
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@redhat.com>1998-05-11 16:15:22 +0000
committerFrank Ch. Eigler <fche@redhat.com>1998-05-11 16:15:22 +0000
commit24abdc9d313db1d320cb8c768c968098a4dda2c4 (patch)
treec37fae86c0dab74dadbae702a0d99a2824beb111 /sim/mips
parentc8f90c731eb0287071aa6f7a5f51e84daa8ced46 (diff)
downloadgdb-24abdc9d313db1d320cb8c768c968098a4dda2c4.zip
gdb-24abdc9d313db1d320cb8c768c968098a4dda2c4.tar.gz
gdb-24abdc9d313db1d320cb8c768c968098a4dda2c4.tar.bz2
* Fixing typo that caused infinite loop upon PKE MPG.
Diffstat (limited to 'sim/mips')
-rw-r--r--sim/mips/sky-pke.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sim/mips/sky-pke.c b/sim/mips/sky-pke.c
index 8cf60dd..3e1815c 100644
--- a/sim/mips/sky-pke.c
+++ b/sim/mips/sky-pke.c
@@ -1686,6 +1686,7 @@ pke_code_mpg(struct pke_device* me, unsigned_4 pkecode)
unsigned_4 source_addr;
struct fifo_quadword* fq;
int next_num;
+ int j;
/* decrement NUM */
next_num = PKE_REG_MASK_GET(me, NUM, NUM) - 1;
@@ -1715,9 +1716,9 @@ pke_code_mpg(struct pke_device* me, unsigned_4 pkecode)
source_addr = fq->source_address;
/* add word offset */
- for(i=0; i<3; i++)
- if(operand == & fq->data[i])
- source_addr += sizeof(unsigned_4) * i;
+ for(j=0; j<3; j++)
+ if(operand == & fq->data[j])
+ source_addr += sizeof(unsigned_4) * j;
fq = pke_pcrel_fifo(me, i*2 + 2, & operand);
vu_upper_opcode = *operand;