]> rtime.felk.cvut.cz Git - jailhouse.git/commit
arm: read/write the banked registers
authorJean-Philippe Brucker <jean-philippe.brucker@arm.com>
Tue, 1 Jul 2014 18:08:28 +0000 (19:08 +0100)
committerJan Kiszka <jan.kiszka@siemens.com>
Fri, 19 Dec 2014 10:04:07 +0000 (11:04 +0100)
commite47548aab160c95d2bd07b3f578e6f61b2d01394
tree53e44b118f7cfb709b7fb946a6f6841e6a93f346
parentfa4d4c231da8e2a017c5a946af1b928a6823a60e
arm: read/write the banked registers

When emulating instructions, the trap handler will need to access the
cell registers according to the guest's processor mode when the trap
occurred, which is stored inside the saved PSR.
This patch allows to directly read and write the banked registers.
If HSR reports a load into r14 and the mode was IRQ for instance, the
hypervisor will need to write something into LR_IRQ instead of the LR
saved on the stack.

Signed-off-by: Jean-Philippe Brucker <jean-philippe.brucker@arm.com>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
hypervisor/arch/arm/include/asm/traps.h
hypervisor/arch/arm/traps.c