System.py (8460:3893d9d2c6c2) System.py (8596:e6e22fa77883)
1# Copyright (c) 2005-2007 The Regents of The University of Michigan
2# Copyright (c) 2011 Regents of the University of California
3# All rights reserved.
4#
5# Redistribution and use in source and binary forms, with or without
6# modification, are permitted provided that the following conditions are
7# met: redistributions of source code must retain the above copyright
8# notice, this list of conditions and the following disclaimer;

--- 26 unchanged lines hidden (view full) ---

35
36from PhysicalMemory import *
37
38class MemoryMode(Enum): vals = ['invalid', 'atomic', 'timing']
39
40class System(SimObject):
41 type = 'System'
42
1# Copyright (c) 2005-2007 The Regents of The University of Michigan
2# Copyright (c) 2011 Regents of the University of California
3# All rights reserved.
4#
5# Redistribution and use in source and binary forms, with or without
6# modification, are permitted provided that the following conditions are
7# met: redistributions of source code must retain the above copyright
8# notice, this list of conditions and the following disclaimer;

--- 26 unchanged lines hidden (view full) ---

35
36from PhysicalMemory import *
37
38class MemoryMode(Enum): vals = ['invalid', 'atomic', 'timing']
39
40class System(SimObject):
41 type = 'System'
42
43 # This method is temporarily obsolete. Its functionality will be
44 # restored in a future changeset.
43 @classmethod
44 def swig_objdecls(cls, code):
45 code('%include "python/swig/system.i"')
46
47 physmem = Param.PhysicalMemory("Physical Memory")
48 mem_mode = Param.MemoryMode('atomic', "The mode the memory system is in")
49 memories = VectorParam.PhysicalMemory(Self.all, "All memories is the system")
50

--- 25 unchanged lines hidden ---
45 @classmethod
46 def swig_objdecls(cls, code):
47 code('%include "python/swig/system.i"')
48
49 physmem = Param.PhysicalMemory("Physical Memory")
50 mem_mode = Param.MemoryMode('atomic', "The mode the memory system is in")
51 memories = VectorParam.PhysicalMemory(Self.all, "All memories is the system")
52

--- 25 unchanged lines hidden ---