summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configs/common/FileSystemConfig.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/configs/common/FileSystemConfig.py b/configs/common/FileSystemConfig.py
index a9c7c92a5..67e380193 100644
--- a/configs/common/FileSystemConfig.py
+++ b/configs/common/FileSystemConfig.py
@@ -77,7 +77,12 @@ def config_filesystem(system, options = None):
procdir = joinpath(fsdir, 'proc')
mkdir(procdir)
- cpus = [obj for obj in system.descendants() if isinstance(obj, BaseCPU)]
+ try:
+ cpus = \
+ [obj for obj in system.descendants() if isinstance(obj, BaseCPU)]
+ except NameError:
+ # BaseCPU is not defined for the NULL ISA
+ cpus = []
cpu_clock = 0
if hasattr(options, 'cpu_clock'):