mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-02-02 07:01:09 +00:00
target/arm: Set MVFR0.FPSP for ARMv5 cpus
We are going to convert FEATURE tests to ISAR tests, so FPSP needs to be set for these cpus, like we have already for FPDP. Backports commit 9eb4f58918a851fb46895fd9b7ce579afeac9d02 from qemu
This commit is contained in:
parent
833de589ed
commit
7c799d29db
|
@ -1096,10 +1096,11 @@ static void arm926_initfn(struct uc_struct *uc, Object *obj, void *opaque)
|
|||
*/
|
||||
cpu->isar.id_isar1 = FIELD_DP32(cpu->isar.id_isar1, ID_ISAR1, JAZELLE, 1);
|
||||
/*
|
||||
* Similarly, we need to set MVFR0 fields to enable double precision
|
||||
* and short vector support even though ARMv5 doesn't have this register.
|
||||
* Similarly, we need to set MVFR0 fields to enable vfp and short vector
|
||||
* support even though ARMv5 doesn't have this register.
|
||||
*/
|
||||
cpu->isar.mvfr0 = FIELD_DP32(cpu->isar.mvfr0, MVFR0, FPSHVEC, 1);
|
||||
cpu->isar.mvfr0 = FIELD_DP32(cpu->isar.mvfr0, MVFR0, FPSP, 1);
|
||||
cpu->isar.mvfr0 = FIELD_DP32(cpu->isar.mvfr0, MVFR0, FPDP, 1);
|
||||
}
|
||||
|
||||
|
@ -1138,10 +1139,11 @@ static void arm1026_initfn(struct uc_struct *uc, Object *obj, void *opaque)
|
|||
*/
|
||||
cpu->isar.id_isar1 = FIELD_DP32(cpu->isar.id_isar1, ID_ISAR1, JAZELLE, 1);
|
||||
/*
|
||||
* Similarly, we need to set MVFR0 fields to enable double precision
|
||||
* and short vector support even though ARMv5 doesn't have this register.
|
||||
* Similarly, we need to set MVFR0 fields to enable vfp and short vector
|
||||
* support even though ARMv5 doesn't have this register.
|
||||
*/
|
||||
cpu->isar.mvfr0 = FIELD_DP32(cpu->isar.mvfr0, MVFR0, FPSHVEC, 1);
|
||||
cpu->isar.mvfr0 = FIELD_DP32(cpu->isar.mvfr0, MVFR0, FPSP, 1);
|
||||
cpu->isar.mvfr0 = FIELD_DP32(cpu->isar.mvfr0, MVFR0, FPDP, 1);
|
||||
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue