arm asm el: document virtualization failure after FP enable patch

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2019-05-27 00:00:04 +00:00
parent 6e790042f0
commit 24b75f92d8
2 changed files with 29 additions and 4 deletions

View File

@@ -13443,6 +13443,22 @@ CurrentEL.EL 0x2
CurrentEL.EL 0x3
....
TODO: the call:
....
./run --arch arm --baremetal baremetal/arch/arm/dump_regs.c --emulator gem5 -- --param 'system.have_virtualization = True'
....
started failing with an exception since https://github.com/cirosantilli/linux-kernel-module-cheat/commit/add6eedb76636b8f443b815c6b2dd160afdb7ff4 at the instruction:
....
vmsr fpexc, r0
....
in link:baremetal/lib/arm.S[]. That patch however enables SIMD in baremetal, which I feel is more important.
According to <<armarm7>>, access to that register is controlled by other registers `NSACR.{CP11, CP10}` and `HCPTR` so those must be turned off, but I'm lazy to investigate now, even just trying to dump those registers in link:baremetal/arch/arm/dump_regs.c[] also leads to exceptions...
==== svc
This is the most basic example of exception handling we have.