target/arm: Fix output of PAuth Auth
commitd67ebada159148bfdfde84871338738e4465e985
authorRichard Henderson <richard.henderson@linaro.org>
Sun, 9 Jun 2019 22:22:49 +0000 (9 15:22 -0700)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 13 Jun 2019 14:14:03 +0000 (13 15:14 +0100)
tree1a22c5021c3d4cee752a06149c42b6dd9f71f488
parentbe1ba4d56eba5666ee03b40e286d7315862ab188
target/arm: Fix output of PAuth Auth

The ARM pseudocode installs the error_code into the original
pointer, not the encrypted pointer.  The difference applies
within the 7 bits of pac data; the result should be the sign
extension of bit 55.

Add a testcase to that effect.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/pauth_helper.c
tests/tcg/aarch64/Makefile.target
tests/tcg/aarch64/pauth-2.c [new file with mode: 0644]