[libre-riscv-dev] [Bug 186] Create decoder for SOC: Power ISA and RISC-V

bugzilla-daemon at libre-riscv.org bugzilla-daemon at libre-riscv.org
Wed Mar 18 23:27:01 GMT 2020


--- Comment #85 from Luke Kenneth Casson Leighton <lkcl at lkcl.net> ---
line 32
for t in range(lenself - stop - 1, lenself - start - 1)

except this is wrong because bits are not stepped properly

so it is probably

l = list(range(start, stop, step)
l = l.reverse() # probably
for t in l:
   t = len(self) - t - 1
   carry on

for the else bit just do the t sub-from-self before lookup, too

You are receiving this mail because:
You are on the CC list for the bug.

More information about the libre-riscv-dev mailing list