unicorn/qemu
Peter Maydell a10b65bd47
target/arm: Add ignore_stackfaults argument to v7m_exception_taken()
In the v8M architecture, if the process of taking an exception
results in a further exception this is called a derived exception
(for example, an MPU exception when writing the exception frame to
memory). If the derived exception happens while pushing the initial
stack frame, we must ignore any subsequent possible exception
pushing the callee-saves registers.

In preparation for making the stack writes check for exceptions,
add a return value from v7m_push_stack() and a new parameter to
v7m_exception_taken(), so that the former can tell the latter that
it needs to ignore failures to write to the stack. We also plumb
the argument through to v7m_push_callee_stack(), which is where
the code to ignore the failures will be.

(Note that the v8M ARM pseudocode structures this slightly differently:
derived exceptions cause the attempt to process the original
exception to be abandoned; then at the top level it calls
DerivedLateArrival to prioritize the derived exception and call
TakeException from there. We choose to let the NVIC do the prioritization
and continue forward with a call to TakeException which will then
take either the original or the derived exception. The effect is
the same, but this structure works better for QEMU because we don't
have a convenient top level place to do the abandon-and-retry logic.)

Backports commit 0094ca70e165cfb69882fa2e100d935d45f1c983 from qemu
2018-03-07 08:17:25 -05:00
..
accel tcg: Merge opcode arguments into TCGOp 2018-03-05 04:45:20 -05:00
crypto
default-configs
docs
fpu
hw mips: replace cpu_mips_init() with cpu_generic_init() 2018-03-05 00:49:10 -05:00
include accel/tcg: add size paremeter in tlb_fill() 2018-03-06 10:56:34 -05:00
qapi
qobject
qom qom: introduce type_register_static_array() 2018-03-05 03:49:50 -05:00
scripts qapi: ensure stable sort ordering when checking QAPI entities 2018-03-06 11:30:31 -05:00
target target/arm: Add ignore_stackfaults argument to v7m_exception_taken() 2018-03-07 08:17:25 -05:00
tcg tcg/aarch64: Add vector operations 2018-03-07 08:07:58 -05:00
util sparc: Make sure we mmap at SHMLBA alignment 2018-03-05 14:09:58 -05:00
aarch64.h tcg/i386: Add vector operations 2018-03-07 08:07:40 -05:00
aarch64eb.h tcg/i386: Add vector operations 2018-03-07 08:07:40 -05:00
accel.c
arm.h tcg/i386: Add vector operations 2018-03-07 08:07:40 -05:00
armeb.h tcg/i386: Add vector operations 2018-03-07 08:07:40 -05:00
atomic_template.h tcg: Record code_gen_buffer address for user-only memory helpers 2018-03-05 13:48:27 -05:00
CODING_STYLE
configure tcg: Add generic vector expanders 2018-03-06 13:42:52 -05:00
COPYING import 2015-08-21 15:04:50 +08:00
COPYING.LIB
cpu-exec-common.c
cpu-exec.c exec-all: extract tb->tc_* into a separate struct tc_tb 2018-03-05 02:57:22 -05:00
cpus.c cpu: refactor cpu_address_space_init() 2018-03-05 14:39:25 -05:00
cputlb.c accel/tcg: add size paremeter in tlb_fill() 2018-03-06 10:56:34 -05:00
exec.c cpu: suffix cpu address spaces with cpu index 2018-03-05 14:41:25 -05:00
gen_all_header.sh
glib_compat.c
HACKING
header_gen.py tcg/i386: Add vector operations 2018-03-07 08:07:40 -05:00
ioport.c
LICENSE
m68k.h tcg/i386: Add vector operations 2018-03-07 08:07:40 -05:00
Makefile qapi: force a UTF-8 locale for running Python 2018-03-06 11:32:48 -05:00
Makefile.objs
Makefile.target tcg: Add generic vector expanders 2018-03-06 13:42:52 -05:00
memory_ldst.inc.c
memory_mapping.c
memory.c memory: remove unused memory_region_set_global_locking() 2018-03-05 14:14:43 -05:00
mips64.h tcg/i386: Add vector operations 2018-03-07 08:07:40 -05:00
mips64el.h tcg/i386: Add vector operations 2018-03-07 08:07:40 -05:00
mips.h tcg/i386: Add vector operations 2018-03-07 08:07:40 -05:00
mipsel.h tcg/i386: Add vector operations 2018-03-07 08:07:40 -05:00
powerpc.h tcg/i386: Add vector operations 2018-03-07 08:07:40 -05:00
qapi-schema.json
qemu-timer.c
rules.mak build-sys: silence make by default or V=0 2018-03-06 08:58:03 -05:00
softmmu_template.h accel/tcg: add size paremeter in tlb_fill() 2018-03-06 10:56:34 -05:00
sparc64.h tcg/i386: Add vector operations 2018-03-07 08:07:40 -05:00
sparc.h tcg/i386: Add vector operations 2018-03-07 08:07:40 -05:00
tcg-runtime-gvec.c tcg: Add generic vector helpers with a scalar operand 2018-03-06 16:10:09 -05:00
tcg-runtime.c exec-all: extract tb->tc_* into a separate struct tc_tb 2018-03-05 02:57:22 -05:00
translate-all.c translate-all: Zero out the TCGContext instance 2018-03-05 15:40:51 -05:00
translate-all.h
translate-common.c
unicorn_common.h
VERSION
vl.c
vl.h
x86_64.h tcg/i386: Add vector operations 2018-03-07 08:07:40 -05:00