diff --git a/qemu/target/arm/cpu.c b/qemu/target/arm/cpu.c index bedff6c7..f5f5f419 100644 --- a/qemu/target/arm/cpu.c +++ b/qemu/target/arm/cpu.c @@ -864,6 +864,7 @@ static void cortex_m3_initfn(struct uc_struct *uc, Object *obj, void *opaque) set_feature(&cpu->env, ARM_FEATURE_V7); set_feature(&cpu->env, ARM_FEATURE_M); cpu->midr = 0x410fc231; + cpu->pmsav7_dregion = 8; } static void cortex_m4_initfn(struct uc_struct *uc, Object *obj, void *opaque) @@ -874,6 +875,7 @@ static void cortex_m4_initfn(struct uc_struct *uc, Object *obj, void *opaque) set_feature(&cpu->env, ARM_FEATURE_M); set_feature(&cpu->env, ARM_FEATURE_THUMB_DSP); cpu->midr = 0x410fc240; /* r0p0 */ + cpu->pmsav7_dregion = 8; } static void arm_v7m_class_init(struct uc_struct *uc, ObjectClass *oc, void *data)