From 710ed8f492aa783933df6551ff98c9a6750fd9f7 Mon Sep 17 00:00:00 2001 From: Nathan Binkert Date: Thu, 9 Sep 2010 14:15:41 -0700 Subject: scons: use code_formatter wherever we can in the build system --- src/sim/System.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/sim') diff --git a/src/sim/System.py b/src/sim/System.py index 5cf46ad75..eec7b4ae5 100644 --- a/src/sim/System.py +++ b/src/sim/System.py @@ -37,7 +37,10 @@ class MemoryMode(Enum): vals = ['invalid', 'atomic', 'timing'] class System(SimObject): type = 'System' - swig_objdecls = [ '%include "python/swig/system.i"' ] + + @classmethod + def swig_objdecls(cls, code): + code('%include "python/swig/system.i"') physmem = Param.PhysicalMemory(Parent.any, "physical memory") mem_mode = Param.MemoryMode('atomic', "The mode the memory system is in") -- cgit v1.2.3