mirror of
https://github.com/qemu/qemu.git
synced 2024-11-26 04:13:39 +08:00
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>
This commit is contained in:
parent
6f78c7b082
commit
01dfc0ed7f
@ -2474,6 +2474,11 @@ static void tcg_target_init(TCGContext *s)
|
|||||||
if (pl != NULL && pl[0] == 'v' && pl[1] >= '4' && pl[1] <= '9') {
|
if (pl != NULL && pl[0] == 'v' && pl[1] >= '4' && pl[1] <= '9') {
|
||||||
arm_arch = pl[1] - '0';
|
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;
|
tcg_target_available_regs[TCG_TYPE_I32] = ALL_GENERAL_REGS;
|
||||||
|
Loading…
Reference in New Issue
Block a user