arch-arm: Exec Crypto instructions only if SIMD&FP enabled

We not only check for the presence of the relative FEAT_*,
we also check if AdvSIMD is enabled; we throw an undefined
instruction otherwise.

Change-Id: I1fd0cdc8057c5a7901774802dc076817f06c8e66
Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
This commit is contained in:
Giacomo Travaglini
2024-02-02 09:27:09 +00:00
parent ebef2fc4b1
commit 16e06bad0c
2 changed files with 3 additions and 2 deletions

View File

@@ -41,7 +41,7 @@ let {{
if (!HaveExt(xc->tcBase(), %(extension)s)) {
return std::make_shared<UndefinedInstruction>(machInst, true);
}
'''
''' + simdEnabledCheckCode
header_output = ""
decoder_output = ""

View File

@@ -44,7 +44,8 @@ let {{
if (!HaveExt(xc->tcBase(), %(extension)s)) {
return std::make_shared<UndefinedInstruction>(machInst, true);
}
'''
''' + simd64EnabledCheckCode
cryptoRegRegRegPrefix = '''
Crypto crypto;
RegVect srcReg1, srcReg2, destReg;