mirror of
https://github.com/yuzu-emu/unicorn
synced 2024-11-25 11:28:57 +00:00
target/arm: Enable ARM_V8_FP16 feature bit for the AArch64 any CPU
Now we have implemented FP16 we can enable it for the "any" CPU. Backports commit 969b389ee8ba84bc3f2e7ccfa993679fac410ad2 from qemu
This commit is contained in:
parent
6e41113897
commit
eb4796e965
1 changed files with 3 additions and 2 deletions
|
@ -200,12 +200,13 @@ static void aarch64_any_initfn(struct uc_struct *uc, Object *obj, void *opaque)
|
||||||
set_feature(&cpu->env, ARM_FEATURE_V8_AES);
|
set_feature(&cpu->env, ARM_FEATURE_V8_AES);
|
||||||
set_feature(&cpu->env, ARM_FEATURE_V8_SHA1);
|
set_feature(&cpu->env, ARM_FEATURE_V8_SHA1);
|
||||||
set_feature(&cpu->env, ARM_FEATURE_V8_SHA256);
|
set_feature(&cpu->env, ARM_FEATURE_V8_SHA256);
|
||||||
set_feature(&cpu->env, ARM_FEATURE_V8_PMULL);
|
|
||||||
set_feature(&cpu->env, ARM_FEATURE_CRC);
|
|
||||||
set_feature(&cpu->env, ARM_FEATURE_V8_SHA512);
|
set_feature(&cpu->env, ARM_FEATURE_V8_SHA512);
|
||||||
set_feature(&cpu->env, ARM_FEATURE_V8_SHA3);
|
set_feature(&cpu->env, ARM_FEATURE_V8_SHA3);
|
||||||
set_feature(&cpu->env, ARM_FEATURE_V8_SM3);
|
set_feature(&cpu->env, ARM_FEATURE_V8_SM3);
|
||||||
set_feature(&cpu->env, ARM_FEATURE_V8_SM4);
|
set_feature(&cpu->env, ARM_FEATURE_V8_SM4);
|
||||||
|
set_feature(&cpu->env, ARM_FEATURE_V8_PMULL);
|
||||||
|
set_feature(&cpu->env, ARM_FEATURE_CRC);
|
||||||
|
set_feature(&cpu->env, ARM_FEATURE_V8_FP16);
|
||||||
cpu->ctr = 0x80038003; /* 32 byte I and D cacheline size, VIPT icache */
|
cpu->ctr = 0x80038003; /* 32 byte I and D cacheline size, VIPT icache */
|
||||||
cpu->dcz_blocksize = 7; /* 512 bytes */
|
cpu->dcz_blocksize = 7; /* 512 bytes */
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue