ide.py
来自「M5,一个功能强大的多处理器系统模拟器.很多针对处理器架构,性能的研究都使用它作」· Python 代码 · 共 39 行
PY
39 行
from m5.SimObject import SimObjectfrom m5.params import *from Pci import PciDeviceclass IdeID(Enum): vals = ['master', 'slave']class IdeDisk(SimObject): type = 'IdeDisk' delay = Param.Latency('1us', "Fixed disk delay in microseconds") driveID = Param.IdeID('master', "Drive ID") image = Param.DiskImage("Disk image")class IdeController(PciDevice): type = 'IdeController' disks = VectorParam.IdeDisk("IDE disks attached to this controller") VendorID = 0x8086 DeviceID = 0x7111 Command = 0x0 Status = 0x280 Revision = 0x0 ClassCode = 0x01 SubClassCode = 0x01 ProgIF = 0x85 BAR0 = 0x00000001 BAR1 = 0x00000001 BAR2 = 0x00000001 BAR3 = 0x00000001 BAR4 = 0x00000001 BAR5 = 0x00000001 InterruptLine = 0x1f InterruptPin = 0x01 BAR0Size = '8B' BAR1Size = '4B' BAR2Size = '8B' BAR3Size = '4B' BAR4Size = '16B'
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?