qemu-e2k/hw/intc
Peter Maydell de2db7ec89 target/arm: Prepare for CONTROL.SPSEL being nonzero in Handler mode
In the v7M architecture, there is an invariant that if the CPU is
in Handler mode then the CONTROL.SPSEL bit cannot be nonzero.
This in turn means that the current stack pointer is always
indicated by CONTROL.SPSEL, even though Handler mode always uses
the Main stack pointer.

In v8M, this invariant is removed, and CONTROL.SPSEL may now
be nonzero in Handler mode (though Handler mode still always
uses the Main stack pointer). In preparation for this change,
change how we handle this bit: rename switch_v7m_sp() to
the now more accurate write_v7m_control_spsel(), and make it
check both the handler mode state and the SPSEL bit.

Note that this implicitly changes the point at which we switch
active SP on exception exit from before we pop the exception
frame to after it.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 1506092407-26985-4-git-send-email-peter.maydell@linaro.org
2017-10-06 16:46:47 +01:00
..
allwinner-a10-pic.c
apic_common.c migration: pre_save return int 2017-09-27 11:35:59 +01:00
apic.c
arm_gic_common.c migration: pre_save return int 2017-09-27 11:35:59 +01:00
arm_gic_kvm.c
arm_gic.c
arm_gicv2m.c
arm_gicv3_common.c migration: pre_save return int 2017-09-27 11:35:59 +01:00
arm_gicv3_cpuif.c
arm_gicv3_dist.c
arm_gicv3_its_common.c migration: pre_save return int 2017-09-27 11:35:59 +01:00
arm_gicv3_its_kvm.c gicv3: Convert to DEFINE_PROP_LINK 2017-09-07 13:54:51 +01:00
arm_gicv3_kvm.c arm_gicv3_kvm: Fix compile warning 2017-09-04 17:13:53 +01:00
arm_gicv3_redist.c
arm_gicv3.c
armv7m_nvic.c target/arm: Prepare for CONTROL.SPSEL being nonzero in Handler mode 2017-10-06 16:46:47 +01:00
aspeed_vic.c
bcm2835_ic.c
bcm2836_control.c
etraxfs_pic.c
exynos4210_combiner.c
exynos4210_gic.c
gic_internal.h
gicv3_internal.h
grlib_irqmp.c
heathrow_pic.c
i8259_common.c migration: pre_save return int 2017-09-27 11:35:59 +01:00
i8259.c
imx_avic.c
intc.c
ioapic_common.c migration: pre_save return int 2017-09-27 11:35:59 +01:00
ioapic.c
lm32_pic.c
Makefile.objs
mips_gic.c
nios2_iic.c
omap_intc.c
openpic_kvm.c memory: Switch memory from using AddressSpace to FlatView 2017-09-21 23:19:37 +02:00
openpic.c ppc: Fix OpenPIC model 2017-09-27 13:05:41 +10:00
pl190.c
puv3_intc.c
realview_gic.c
s390_flic_kvm.c migration: pre_save return int 2017-09-27 11:35:59 +01:00
s390_flic.c
sh_intc.c
slavio_intctl.c
trace-events nvic: Support banked exceptions in acknowledge and complete 2017-09-21 16:31:09 +01:00
vgic_common.h
xics_kvm.c
xics_pnv.c
xics_spapr.c
xics.c migration: pre_save return int 2017-09-27 11:35:59 +01:00
xilinx_intc.c