target/arm: Fix aarch64_sve_change_el wrt EL0
commit9a05f7b67436abdc52bce899f56acfde2e831454
authorRichard Henderson <richard.henderson@linaro.org>
Mon, 8 Oct 2018 21:21:56 +0000 (8 14:21 -0700)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 16 Oct 2018 15:16:42 +0000 (16 16:16 +0100)
treeeb867e3a1421d6b15529f2eac0aa7a9ab86c84cc
parentfb23d693a3e0f22c25fdc2f373ac81d9cbb26680
target/arm: Fix aarch64_sve_change_el wrt EL0

At present we assert:

  arm_el_is_aa64: Assertion `el >= 1 && el <= 3' failed.

The comment in arm_el_is_aa64 explains why asking about EL0 without
extra information is impossible.  Add an extra argument to provide
it from the surrounding context.

Fixes: 0ab5953b00b3
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20181008212205.17752-2-richard.henderson@linaro.org
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/cpu.h
target/arm/helper.c
target/arm/op_helper.c