System.py (11763:302c6b957854) | System.py (11787:af41594e9b3c) |
---|---|
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; --- 30 unchanged lines hidden (view full) --- 39 'atomic_noncaching'] 40 41class System(MemObject): 42 type = 'System' 43 cxx_header = "sim/system.hh" 44 system_port = MasterPort("System port") 45 46 @classmethod | 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; --- 30 unchanged lines hidden (view full) --- 39 'atomic_noncaching'] 40 41class System(MemObject): 42 type = 'System' 43 cxx_header = "sim/system.hh" 44 system_port = MasterPort("System port") 45 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; 54 void setMemoryMode(Enums::MemoryMode mode); 55''') 56 57 memories = VectorParam.AbstractMemory(Self.all, 58 "All memories in the system") --- 54 unchanged lines hidden --- | 47 def export_methods(cls, code): 48 code(''' 49 Enums::MemoryMode getMemoryMode() const; 50 void setMemoryMode(Enums::MemoryMode mode); 51''') 52 53 memories = VectorParam.AbstractMemory(Self.all, 54 "All memories in the system") --- 54 unchanged lines hidden --- |