qemu/linux-user
Stafford Horne d89e71e873 target/openrisc: implement shadow registers
Shadow registers are part of the openrisc spec along with sr[cid], as
part of the fast context switching feature.  When exceptions occur,
instead of having to save registers to the stack if enabled the CID will
increment and a new set of registers will be available.

This patch only implements shadow registers which can be used as extra
scratch registers via the mfspr and mtspr if required.  This is
implemented in a way where it would be easy to add on the fast context
switching, currently cid is hardcoded to 0.

This is need for openrisc linux smp kernels to boot correctly.

Signed-off-by: Stafford Horne <shorne@gmail.com>
2017-05-04 09:39:01 +09:00
..
aarch64
alpha
arm
cris
host
hppa
i386
m68k
microblaze
mips
mips64
nios2
openrisc
ppc
s390x
sh4
sparc
sparc64
tilegx
unicore32
x86_64
elfload.c
errno_defs.h
flat.h
flatload.c
ioctls.h
linux_loop.h
linuxload.c
m68k-sim.c
main.c
Makefile.objs
mmap.c
qemu.h
safe-syscall.S
signal.c
socket.h
strace.c
strace.list
syscall.c
syscall_defs.h
syscall_types.h
target_flat.h
trace-events
uaccess.c
uname.c
uname.h
vm86.c