mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2025-02-26 04:15:28 +00:00
sim: mips: fix dv-tx3904cpu build error
When building for mipstx39-rtems4.12 targets, some funcs use SD and CPU implicitly. Restore the defines for these to the local sd and cpu vars. This was broken by the clean up in commit d47f5b30d8481272e9480118bdcb. Reported-by: Joel Sherrill <joel.sherrill@oarcorp.com>
This commit is contained in:
parent
e04659e860
commit
91588b3af8
@ -1,3 +1,8 @@
|
||||
2016-11-11 Mike Frysinger <vapier@gentoo.org>
|
||||
|
||||
* dv-tx3904cpu.c (deliver_tx3904cpu_interrupt): Define CPU to cpu
|
||||
and SD to sd.
|
||||
|
||||
2016-11-11 Mike Frysinger <vapier@gentoo.org>
|
||||
|
||||
* mips.igen (check_u64): Enable for `r3900'.
|
||||
|
@ -143,6 +143,9 @@ deliver_tx3904cpu_interrupt (struct hw *me,
|
||||
sim_cpu *cpu = STATE_CPU (sd, 0); /* NB: fix CPU 0. */
|
||||
address_word cia = CPU_PC_GET (cpu);
|
||||
|
||||
#define CPU cpu
|
||||
#define SD sd
|
||||
|
||||
if (controller->pending_reset)
|
||||
{
|
||||
controller->pending_reset = 0;
|
||||
@ -187,6 +190,8 @@ deliver_tx3904cpu_interrupt (struct hw *me,
|
||||
}
|
||||
} /* interrupt set */
|
||||
}
|
||||
#undef CPU
|
||||
#undef SD
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user