mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-29 16:38:05 +08:00
* gencode.c (build_mips16_operands): Correct computation of base
address for extended PC relative instruction.
This commit is contained in:
@ -1523,7 +1523,7 @@ build_mips16_operands (bitmap)
|
|||||||
{
|
{
|
||||||
int j;
|
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++)
|
for (j = 0; j < opindex; j++)
|
||||||
if (ops[j]->shift != 0)
|
if (ops[j]->shift != 0)
|
||||||
printf (" & ~ (uword64) 0x%x", (1 << ops[j]->shift) - 1);
|
printf (" & ~ (uword64) 0x%x", (1 << ops[j]->shift) - 1);
|
||||||
|
Reference in New Issue
Block a user