File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55from .initdata import build_initdata
66from .channels import *
77from .event import GPUEventManager
8+ from ..constructutils import Ver
89from ..proxy import IODEV
910from ..malloc import Heap
1011from ..hw .uat import UAT , MemoryAttr
@@ -255,11 +256,15 @@ def faulted(self, msg):
255256 self .recover ()
256257
257258 def show_pending_stamps (self ):
259+ if Ver .check ("V >= V13_5B4" ):
260+ info_bits = 4
261+ else :
262+ info_bits = 3
258263 self .initdata .regionC .pull ()
259264 self .log (f' Pending stamps:' )
260- for i in self .initdata .regionC .pending_stamps :
265+ for ( off , i ) in enumerate ( self .initdata .regionC .pending_stamps ) :
261266 if i .info or i .wait_value :
262- self .log (f" - #{ i .info >> 3 :3d} : { i .info & 0x7 } /{ i .wait_value :#x} " )
267+ self .log (f" - [ { off } ] #{ i .info >> info_bits :3d} : { i .info & (( 1 << info_bits ) - 1 ) } /{ i .wait_value :#x} " )
263268 i .info = 0
264269 i .wait_value = 0
265270 tmp = i .regmap ()
You can’t perform that action at this time.
0 commit comments