binutils-gdb/sim
Stafford Horne 5eb0dd3623 or1k: Add support for numcores and coreid sprs
These are needed when running GCC tests for newlib toolchains built with
multicore support.  Without these SPRs we get the following warnings
when running tests.

    spawn or1k-elf-run ./20000112-1.exe^M
    WARNING: l.mfspr with invalid SPR address 0x80^M
    WARNING: l.mfspr with invalid SPR address 0x81^M
    WARNING: l.mfspr with invalid SPR address 0x81^M
    WARNING: l.mfspr with invalid SPR address 0x81^M

Support is added by defining the SPRs in the cgen machine definition and
regenerating the machine code.  In or1k/or1k.c we initialize NUMCORES to
1 and COREID to 0 as the sim has only one CPU.  In or1k/traps.c we allow
returning the NUMCORES and COREID spr values in the mfspr function.

Signed-off-by: Stafford Horne <shorne@gmail.com>
2025-06-14 06:10:57 +01:00
..
aarch64 Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
avr Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
bfin Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
bpf Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
common Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
cr16 Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
cris Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
d10v Fix d10v sim build with GCC 15 2025-04-25 14:38:11 -06:00
erc32 Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
example-synacor Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
frv Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
ft32 Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
h8300 Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
igen Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
iq2000 Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
lm32 Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
m4 Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
m32c Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
m32r Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
m68hc11 Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
mcore Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
microblaze Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
mips Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
mn10300 Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
moxie Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
msp430 Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
or1k or1k: Add support for numcores and coreid sprs 2025-06-14 06:10:57 +01:00
ppc Use correct type for saved signal handler 2024-12-16 13:16:04 -07:00
pru Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
riscv Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
rl78 Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
rx Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
sh Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
testsuite sim: testsuite: Fix build with host GCC15 2025-05-19 21:12:51 +03:00
v850 Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
.gitignore sim: drop unused gentmap & nltvals.def logic 2021-11-28 13:24:00 -05:00
aclocal.m4 sim: smp: make option available again 2022-12-25 02:13:30 -05:00
ChangeLog-2021 sim: rename ChangeLog files to ChangeLog-2021 2021-08-17 20:27:36 -04:00
config.h.in sim: m32r: fixup some of the int<->pointer casts 2024-01-10 22:37:03 -05:00
configure Delete the ARM sub-directory of the SIM directory. 2025-03-25 13:30:32 +00:00
configure.ac Delete the ARM sub-directory of the SIM directory. 2025-03-25 13:30:32 +00:00
COPYING sim: clarify license text via COPYING file 2021-11-06 01:44:06 -04:00
gdbinit.in sim: gdbinit: hoist setup to common code 2022-02-21 13:57:33 -05:00
MAINTAINERS sim: Update mailing list address 2022-09-01 10:15:09 -04:00
Makefile.am Update copyright dates to include 2025 2025-04-08 10:54:39 -06:00
Makefile.in sim: fix Makefile.in copyright dates 2025-04-09 10:03:27 -04:00
README-HACKING sim: build: delete Make-common.in logic 2023-01-13 17:34:53 -05:00