From bd2f63470e1e965170f22f32bd6d183d28c9188e Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Thu, 13 Feb 1997 19:08:55 +0000 Subject: [PATCH] * gencode.c (build_mips16_operands): Correct computation of base address for extended PC relative instruction. --- sim/mips/gencode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sim/mips/gencode.c b/sim/mips/gencode.c index 7518746a2a8..f5541fbfa89 100644 --- a/sim/mips/gencode.c +++ b/sim/mips/gencode.c @@ -1523,7 +1523,7 @@ build_mips16_operands (bitmap) { int j; - printf ("((INDELAYSLOT () ? (INJALDELAYSLOT () ? IPC - 4 : IPC - 2) : IPC) & ~ (uword64) 1)"); + printf ("((INDELAYSLOT () ? (INJALDELAYSLOT () ? IPC - 4 : IPC - 2) : (have_extendval ? IPC - 2 : IPC)) & ~ (uword64) 1)"); for (j = 0; j < opindex; j++) if (ops[j]->shift != 0) printf (" & ~ (uword64) 0x%x", (1 << ops[j]->shift) - 1); -- 2.30.2