# in SVP64 mode. decode/print out svp64 prefix, get v3.0B instruction
print ("svp64.rm", bin(pfx.rm.asint(msb0=True)))
+ print (" svstate.vl", self.svstate.vl.asint(msb0=True))
+ print (" svstate.mvl", self.svstate.maxvl.asint(msb0=True))
sv_rm = pfx.rm.asint()
ins = self.imem.ld(pc+4, 4, False, True)
print(" svsetup: 0x%x 0x%x %s" % (pc+4, ins & 0xffffffff, bin(ins)))
initial_regs[3] = 0x1234
initial_regs[2] = 0x4321
svstate = SVP64State()
- svstate.vl[0:-1] = 2 # VL
- svstate.maxvl[0:-1] = 2 # MAXVL
+ svstate.vl[0:7] = 2 # VL
+ svstate.maxvl[0:7] = 2 # MAXVL
print ("SVSTATE", bin(svstate.spr.asint()))
with Program(lst, bigendian=False) as program:
sim = self.run_tst_program(program, initial_regs, svstate)