diff options
author | Andrew Cagney <cagney@redhat.com> | 1997-11-06 14:24:57 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 1997-11-06 14:24:57 +0000 |
commit | 95469cebdd302ffd71ec96252e988c996ad6d1ca (patch) | |
tree | b31623127018d2c84d0ac244ada659e77726a052 /sim/mips/gencode.c | |
parent | 549bf9505169c883039f229f1f12ad6dd2260e32 (diff) | |
download | gdb-95469cebdd302ffd71ec96252e988c996ad6d1ca.zip gdb-95469cebdd302ffd71ec96252e988c996ad6d1ca.tar.gz gdb-95469cebdd302ffd71ec96252e988c996ad6d1ca.tar.bz2 |
Replace global IPC with function argument cia or current instruction
address.
Pass cia into calls to sim_engine_stop so that breakpoints et.al. work.
Diffstat (limited to 'sim/mips/gencode.c')
-rw-r--r-- | sim/mips/gencode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sim/mips/gencode.c b/sim/mips/gencode.c index 298fab0..7feaef2 100644 --- a/sim/mips/gencode.c +++ b/sim/mips/gencode.c @@ -1800,7 +1800,7 @@ build_mips16_operands (bitmap) { int j; - printf ("((INDELAYSLOT () ? (INJALDELAYSLOT () ? IPC - 4 : IPC - 2) : (have_extendval ? IPC - 2 : IPC)) & ~ (uword64) 1)"); + printf ("((INDELAYSLOT () ? (INJALDELAYSLOT () ? cia - 4 : cia - 2) : (have_extendval ? cia - 2 : cia)) & ~ (uword64) 1)"); for (j = 0; j < opindex; j++) if (ops[j]->shift != 0) printf (" & ~ (uword64) 0x%x", (1 << ops[j]->shift) - 1); |