mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-29 16:38:05 +08:00
For NEC 4100/4300 project
* gencode.c (build_instruction, case JUMP): Truncate PC to 32 bits. * interp.c (CHECKHILO): Define away. (simSIGINT): New macro. (membank_size): Increase from 1MB to 2MB. (control_c): New function. (sim_resume): Rename parameter signal to signal_number. Add local variable prev. Call signal before and after simulate. (sim_stop_reason): Add simSIGINT support. (sim_warning, sim_error, dotrace, SignalException): Define as stdarg functions always. (sim_warning): Delete call to SignalException. Do call printf_filtered if logfh is NULL. (AddressTranslation): Add #ifdef DEBUG around debugging message and a call to sim_warning.
This commit is contained in:
@ -1862,6 +1862,9 @@ build_instruction (doisa, features, mips16, insn)
|
||||
if (insn->flags & NOT)
|
||||
printf(" op1 ^= 1;\n");
|
||||
|
||||
printf(" /* NOTE: ??? Gdb gets confused if the PC is sign-extended,\n");
|
||||
printf(" so we just truncate it to 32 bits here. */\n");
|
||||
printf(" op1 = WORD64LO(op1);\n");
|
||||
printf(" /* NOTE: The jump occurs AFTER the next instruction has been executed */\n");
|
||||
printf(" DSPC = op1;\n");
|
||||
printf(" DELAYSLOT();\n");
|
||||
|
Reference in New Issue
Block a user