summaryrefslogtreecommitdiffstats
path: root/tcg
diff options
context:
space:
mode:
authorRichard Henderson2022-01-03 02:42:07 +0100
committerRichard Henderson2022-02-08 22:55:02 +0100
commit01dfc0ed7f2c5f8dbab65f31228a2888c7b85a07 (patch)
tree6c0f0f547b603aeef87f5c0481817fc0ab2fac4f /tcg
parenttcg/loongarch64: Support raising sigbus for user-only (diff)
downloadqemu-01dfc0ed7f2c5f8dbab65f31228a2888c7b85a07.tar.gz
qemu-01dfc0ed7f2c5f8dbab65f31228a2888c7b85a07.tar.xz
qemu-01dfc0ed7f2c5f8dbab65f31228a2888c7b85a07.zip
tcg/arm: Drop support for armv4 and armv5 hosts
Support for unaligned accesses is difficult for pre-v6 hosts. While debian still builds for armv4, we cannot use a compile time test, so test the architecture at runtime and error out. Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'tcg')
-rw-r--r--tcg/arm/tcg-target.c.inc5
1 files changed, 5 insertions, 0 deletions
diff --git a/tcg/arm/tcg-target.c.inc b/tcg/arm/tcg-target.c.inc
index 5345c4e39c..29d63e98a8 100644
--- a/tcg/arm/tcg-target.c.inc
+++ b/tcg/arm/tcg-target.c.inc
@@ -2474,6 +2474,11 @@ static void tcg_target_init(TCGContext *s)
if (pl != NULL && pl[0] == 'v' && pl[1] >= '4' && pl[1] <= '9') {
arm_arch = pl[1] - '0';
}
+
+ if (arm_arch < 6) {
+ error_report("TCG: ARMv%d is unsupported; exiting", arm_arch);
+ exit(EXIT_FAILURE);
+ }
}
tcg_target_available_regs[TCG_TYPE_I32] = ALL_GENERAL_REGS;