sim: cpu: change default init to handle all cpus
authorMike Frysinger <vapier@gentoo.org>
Sun, 25 Dec 2022 05:53:25 +0000 (00:53 -0500)
committerMike Frysinger <vapier@gentoo.org>
Sun, 25 Dec 2022 07:10:46 +0000 (02:10 -0500)
commit883be197745c9a9ea626cf0671e8bb0109d21a36
tree0c19d5fa5fb39952a439f495c29c32e5ea777738
parentfc9b04458287e58365b1de8eaf6b626ac11743c2
sim: cpu: change default init to handle all cpus

All the runtimes were only initializing a single CPU.  When SMP is
enabled, things quickly crash as none of the other CPU structs are
setup.  Change the default from 0 to the compile time value.
28 files changed:
sim/aarch64/interp.c
sim/arm/wrapper.c
sim/avr/interp.c
sim/bfin/interp.c
sim/bpf/sim-if.c
sim/common/sim-cpu.c
sim/cr16/interp.c
sim/cris/sim-if.c
sim/d10v/interp.c
sim/example-synacor/interp.c
sim/frv/sim-if.c
sim/ft32/interp.c
sim/h8300/compile.c
sim/iq2000/sim-if.c
sim/lm32/sim-if.c
sim/m32r/sim-if.c
sim/m68hc11/interp.c
sim/mcore/interp.c
sim/microblaze/interp.c
sim/mips/interp.c
sim/mn10300/interp.c
sim/moxie/interp.c
sim/msp430/msp430-sim.c
sim/or1k/sim-if.c
sim/pru/interp.c
sim/riscv/interp.c
sim/sh/interp.c
sim/v850/interp.c