All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Arm32: MSR to SPSR needs qualification
@ 2021-06-11  7:55 Jan Beulich
  2021-06-11  8:00 ` Julien Grall
  0 siblings, 1 reply; 6+ messages in thread
From: Jan Beulich @ 2021-06-11  7:55 UTC (permalink / raw)
  To: xen-devel; +Cc: Stefano Stabellini, Julien Grall

The Arm ARM's description of MSR doesn't even allow for plain "SPSR"
here, and while gas accepts this, it takes it to mean SPSR_cf. Yet
surely all of SPSR wants updating on this path, not just the lowest and
highest 8 bits.

Fixes: dfcffb128be4 ("xen/arm32: SPSR_hyp/SPSR")
Signed-off-by: Jan Beulich <jbeulich@suse.com>

--- a/xen/arch/arm/arm32/entry.S
+++ b/xen/arch/arm/arm32/entry.S
@@ -395,7 +395,7 @@ return_to_hypervisor:
         ldr r11, [sp, #UREGS_pc]
         msr ELR_hyp, r11
         ldr r11, [sp, #UREGS_cpsr]
-        msr SPSR, r11
+        msr SPSR_cxsf, r11
 #ifdef CONFIG_ARM32_HARDEN_BRANCH_PREDICTOR
         /*
          * Hardening branch predictor may require to setup a different



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-06-11 13:22 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-11  7:55 [PATCH] Arm32: MSR to SPSR needs qualification Jan Beulich
2021-06-11  8:00 ` Julien Grall
2021-06-11  9:16   ` Jan Beulich
2021-06-11 10:41     ` Julien Grall
2021-06-11 13:02       ` Jan Beulich
2021-06-11 13:22         ` Julien Grall

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.