Fix VFP feature check. (#2090)

VFP instructions could only be disassembled if armv8 was set as arch.
This is because the predicate fails due to this feature check. This is incorrect as also armv7 can have VFP support.
This commit is contained in:
Rot127 2023-07-18 15:57:31 +00:00 committed by GitHub
parent 307453080d
commit 270d16e458
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -392,10 +392,9 @@ bool ARM_getFeatureBits(unsigned int mode, unsigned int feature)
feature == ARM_HasV8_4aOps || feature == ARM_HasV8_3aOps)
// HasV8MBaselineOps
return false;
} else {
if (feature == ARM_FeatureVFPOnlySP)
return false;
}
if (feature == ARM_FeatureVFPOnlySP)
return false;
if ((mode & CS_MODE_MCLASS) == 0) {
if (feature == ARM_FeatureMClass)