On 04.04.2014 10:40, Vladimir Murzin wrote: > On Wed, Apr 2, 2014 at 1:18 PM, Claudio Fontana > <claudio.fontana@xxxxxxxxxx> wrote: >> >> Hello all, >> >> I am running QEMU/kvm, and in the first few instructions I am setting SCTRL_EL1 with the intention to disable strict alignment checks (clearing the A bit). Is this actually supported? >> >> I get Data Aborts for misalignment after that regardless of that setting, as though the setting was ignored. >> [using ldr, str, not using SP as base]. >> To work around that, I am currently compiling my code with -mstrict-align. >> >> Any advice on this? >> >> Thank you, >> >> Claudio >> >> >> _______________________________________________ >> kvmarm mailing list >> kvmarm@xxxxxxxxxxxxxxxxxxxxx >> https://lists.cs.columbia.edu/mailman/listinfo/kvmarm > > Hi Claudio > > I guess you do misaligned access at EL1, in this case according to ARM > ARMv8 SCTRL_EL1.A bit is applicable to software running at EL0. > > Vladimir > Thank you Vladimir, in my version of the v8 manual the paragraph dedicated to the A bit in SCTRL_EL1 makes no mention of where it should be applicable, whereas other bits make explicit mention of when they are applicable at EL0/EL1. This could be a suggestion for an improvement in the docs I think. Thanks again, Claudio _______________________________________________ kvmarm mailing list kvmarm@xxxxxxxxxxxxxxxxxxxxx https://lists.cs.columbia.edu/mailman/listinfo/kvmarm