mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-28 15:18:37 +08:00
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.
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user