System.py (9524:d6ffa982a68b) | System.py (9790:ccc428657233) |
---|---|
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; --- 29 unchanged lines hidden (view full) --- 38class MemoryMode(Enum): vals = ['invalid', 'atomic', 'timing', 39 'atomic_noncaching'] 40 41class System(MemObject): 42 type = 'System' 43 cxx_header = "sim/system.hh" 44 system_port = MasterPort("System port") 45 | 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; --- 29 unchanged lines hidden (view full) --- 38class MemoryMode(Enum): vals = ['invalid', 'atomic', 'timing', 39 'atomic_noncaching'] 40 41class System(MemObject): 42 type = 'System' 43 cxx_header = "sim/system.hh" 44 system_port = MasterPort("System port") 45 |
46 # Override the clock from the ClockedObject which looks at the 47 # parent clock by default. The 1 GHz default system clock serves 48 # as a start for the modules that rely on the parent to provide 49 # the clock. 50 clock = '1GHz' 51 | |
52 @classmethod 53 def export_method_cxx_predecls(cls, code): 54 code('#include "sim/system.hh"') 55 56 @classmethod 57 def export_methods(cls, code): 58 code(''' 59 Enums::MemoryMode getMemoryMode() const; --- 34 unchanged lines hidden --- | 46 @classmethod 47 def export_method_cxx_predecls(cls, code): 48 code('#include "sim/system.hh"') 49 50 @classmethod 51 def export_methods(cls, code): 52 code(''' 53 Enums::MemoryMode getMemoryMode() const; --- 34 unchanged lines hidden --- |