summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sim/mips/gencode.c2
1 files changed, 1 insertions, 1 deletions
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);