diff options
author | Richard Henderson | 2019-08-26 17:15:36 +0200 |
---|---|---|
committer | Peter Maydell | 2019-09-03 17:20:34 +0200 |
commit | 1ce21ba1eaf08b22da5925f3e37fc0b4322da858 (patch) | |
tree | f236fffdcd37bf1be77e2bd4f62c4e80a3692f74 /target/arm/translate-vfp.inc.c | |
parent | Revert "target/arm: Use unallocated_encoding for aarch32" (diff) | |
download | qemu-1ce21ba1eaf08b22da5925f3e37fc0b4322da858.tar.gz qemu-1ce21ba1eaf08b22da5925f3e37fc0b4322da858.tar.xz qemu-1ce21ba1eaf08b22da5925f3e37fc0b4322da858.zip |
target/arm: Factor out unallocated_encoding for aarch32
Make this a static function private to translate.c.
Thus we can use the same idiom between aarch64 and aarch32
without actually sharing function implementations.
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Laurent Desnogues <laurent.desnogues@gmail.com>
Message-id: 20190826151536.6771-3-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; } |