gem5.utils.requires.html
gem5.utils.requires module¶
- gem5.utils.requires.requires(isa_required: ISA | None = None, coherence_protocol_required: CoherenceProtocol | None = None, kvm_required: bool = False) None ¶
Ensures the ISA/Coherence protocol/KVM requirements are met. An exception will be raise if they are not.
- Parameters:
isa_required – The ISA(s) gem5 must be compiled to.
coherence_protocol_required – The coherence protocol gem5 must be compiled to.
kvm_required – The host system must have the Kernel-based Virtual Machine available.
- Raises:
Exception – Raises an exception if the required ISA or coherence protocol do not match that of the current gem5 binary.