arch-arm: Add have_crypto System parameter
This patch adds the have_crypto ArmSystem parameter for enabling crypto extension. This is done by modifying the AArch32/AArch64 ID registers at startup time. Change-Id: I6eefb7e6f6354802a14ea639ad53b75f8e1e11c5 Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com> Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com> Reviewed-on: https://gem5-review.googlesource.com/c/13252 Reviewed-by: Jason Lowe-Power <jason@lowepower.com> Maintainer: Andreas Sandberg <andreas.sandberg@arm.com> Maintainer: Jason Lowe-Power <jason@lowepower.com>
This commit is contained in:
@@ -88,6 +88,11 @@ class ArmSystem : public System
|
||||
*/
|
||||
const bool _haveVirtualization;
|
||||
|
||||
/**
|
||||
* True if this system implements the Crypto Extension
|
||||
*/
|
||||
const bool _haveCrypto;
|
||||
|
||||
/**
|
||||
* Pointer to the Generic Timer wrapper.
|
||||
*/
|
||||
@@ -177,6 +182,11 @@ class ArmSystem : public System
|
||||
*/
|
||||
bool haveVirtualization() const { return _haveVirtualization; }
|
||||
|
||||
/** Returns true if this system implements the Crypto
|
||||
* Extension
|
||||
*/
|
||||
bool haveCrypto() const { return _haveCrypto; }
|
||||
|
||||
/** Sets the pointer to the Generic Timer. */
|
||||
void setGenericTimer(GenericTimer *generic_timer)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user