diff options
Diffstat (limited to 'configs/common')
-rw-r--r-- | configs/common/cores/arm/__init__.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/configs/common/cores/arm/__init__.py b/configs/common/cores/arm/__init__.py index 96388f731..582e6b859 100644 --- a/configs/common/cores/arm/__init__.py +++ b/configs/common/cores/arm/__init__.py @@ -43,6 +43,12 @@ _cpu_modules = [ ] for c in _cpu_modules: - import_module("." + c, package=__package__) + try: + import_module("." + c, package=__package__) + except NameError: + # Failed to import a CPU model due to a missing + # dependency. This typically happens if gem5 has been compiled + # without a CPU model needed by the timing model. + pass __all__ = _cpu_modules |