⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 system.py

📁 M5,一个功能强大的多处理器系统模拟器.很多针对处理器架构,性能的研究都使用它作为模拟平台
💻 PY
字号:
from m5.SimObject import SimObjectfrom m5.params import *from m5.proxy import *from m5 import build_envfrom PhysicalMemory import *class MemoryMode(Enum): vals = ['invalid', 'atomic', 'timing']class System(SimObject):    type = 'System'    swig_objdecls = [ '%include "python/swig/system.i"' ]    physmem = Param.PhysicalMemory(Parent.any, "phsyical memory")    mem_mode = Param.MemoryMode('atomic', "The mode the memory system is in")    if build_env['FULL_SYSTEM']:        abstract = True        boot_cpu_frequency = Param.Frequency(Self.cpu[0].clock.frequency,                                             "boot processor frequency")        init_param = Param.UInt64(0, "numerical value to pass into simulator")        boot_osflags = Param.String("a", "boot flags to pass to the kernel")        kernel = Param.String("", "file that contains the kernel code")        readfile = Param.String("", "file to read startup script from")        symbolfile = Param.String("", "file to get the symbols from")

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -