xen/arm: traps: Export a bunch of helpers to handle emulation
authorJulien Grall <julien.grall@arm.com>
Thu, 14 Sep 2017 17:08:55 +0000 (18:08 +0100)
committerStefano Stabellini <sstabellini@kernel.org>
Thu, 14 Sep 2017 22:14:59 +0000 (15:14 -0700)
commitb182edb70ef5cf209a2b81b0262a635a099c590c
tree076c2adcc933c099b05eb54ae5b31044d5c7f5f1
parentad4b3e1e9df34063d1d6afe6fb3b5eb59d67bbad
xen/arm: traps: Export a bunch of helpers to handle emulation

A follow-up patch will move some parts of traps.c in separate files.
The will require to use helpers that are currently statically defined.
Export the following helpers:
    - inject_undef64_exception
    - inject_undef_exception
    - check_conditional_instr
    - advance_pc
    - handle_raz_wi
    - handle_wo_wi
    - handle_ro_raz

Note that asm-arm/arm32/traps.h is empty but it is to keep parity with
the arm64 counterpart.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/traps.c
xen/include/asm-arm/arm32/traps.h [new file with mode: 0644]
xen/include/asm-arm/arm64/traps.h [new file with mode: 0644]
xen/include/asm-arm/traps.h [new file with mode: 0644]