From 3b3bce7d4e3b547957bce427cbf33c15ac471981 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Tue, 23 Oct 2018 12:47:13 -0400 Subject: [PATCH] target/arm: Fix cortex-a7 id_isar0 The incorrect value advertised only thumb2 div without arm div. Backports commit 37bdda89eb7615cb225f781c9fb552e144c68ea7 from qemu --- qemu/target/arm/cpu.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/qemu/target/arm/cpu.c b/qemu/target/arm/cpu.c index 239c9b56..cb1a092e 100644 --- a/qemu/target/arm/cpu.c +++ b/qemu/target/arm/cpu.c @@ -1332,7 +1332,10 @@ static void cortex_a7_initfn(struct uc_struct *uc, Object *obj, void *opaque) cpu->id_mmfr1 = 0x40000000; cpu->id_mmfr2 = 0x01240000; cpu->id_mmfr3 = 0x02102211; - cpu->id_isar0 = 0x01101110; + /* a7_mpcore_r0p5_trm, page 4-4 gives 0x01101110; but + * table 4-41 gives 0x02101110, which includes the arm div insns. + */ + cpu->id_isar0 = 0x02101110; cpu->id_isar1 = 0x13112111; cpu->id_isar2 = 0x21232041; cpu->id_isar3 = 0x11112131;