System.py (8666:97d873b8b13e) | System.py (8703:f2ac0bca75df) |
---|---|
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; --- 23 unchanged lines hidden (view full) --- 32from m5.defines import buildEnv 33from m5.params import * 34from m5.proxy import * 35 36from PhysicalMemory import * 37 38class MemoryMode(Enum): vals = ['invalid', 'atomic', 'timing'] 39 | 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; --- 23 unchanged lines hidden (view full) --- 32from m5.defines import buildEnv 33from m5.params import * 34from m5.proxy import * 35 36from PhysicalMemory import * 37 38class MemoryMode(Enum): vals = ['invalid', 'atomic', 'timing'] 39 |
40class System(SimObject): | 40class System(MemObject): |
41 type = 'System' | 41 type = 'System' |
42 system_port = Port("System port") |
|
42 43 @classmethod 44 def export_method_cxx_predecls(cls, code): 45 code('#include "sim/system.hh"') 46 47 @classmethod 48 def export_methods(cls, code): 49 code(''' --- 33 unchanged lines hidden --- | 43 44 @classmethod 45 def export_method_cxx_predecls(cls, code): 46 code('#include "sim/system.hh"') 47 48 @classmethod 49 def export_methods(cls, code): 50 code(''' --- 33 unchanged lines hidden --- |