diff options
author | Richard Henderson | 2019-08-15 10:46:45 +0200 |
---|---|---|
committer | Peter Maydell | 2019-08-16 15:02:50 +0200 |
commit | 3cb36637157088892e9e33ddb1034bffd1251d3b (patch) | |
tree | 09d244e59bc0a9cfb94a97590852f484151eda15 /target/arm/translate-vfp.inc.c | |
parent | target/arm: Remove offset argument to gen_exception_bkpt_insn (diff) | |
download | qemu-3cb36637157088892e9e33ddb1034bffd1251d3b.tar.gz qemu-3cb36637157088892e9e33ddb1034bffd1251d3b.tar.xz qemu-3cb36637157088892e9e33ddb1034bffd1251d3b.zip |
target/arm: Use unallocated_encoding for aarch32
Promote this function from aarch64 to fully general use.
Use it to unify the code sequences for generating illegal
opcode exceptions.
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-id: 20190807045335.1361-11-richard.henderson@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'target/arm/translate-vfp.inc.c')
-rw-r--r-- | target/arm/translate-vfp.inc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/target/arm/translate-vfp.inc.c b/target/arm/translate-vfp.inc.c index 5065d4524c..3e8ea80493 100644 --- a/target/arm/translate-vfp.inc.c +++ b/target/arm/translate-vfp.inc.c @@ -108,8 +108,7 @@ static bool full_vfp_access_check(DisasContext *s, bool ignore_vfp_enabled) if (!s->vfp_enabled && !ignore_vfp_enabled) { assert(!arm_dc_feature(s, ARM_FEATURE_M)); - gen_exception_insn(s, s->pc_curr, EXCP_UDEF, syn_uncategorized(), - default_exception_el(s)); + unallocated_encoding(s); return false; } |