1
0
mirror of https://github.com/antonblanchard/microwatt.git synced 2026-01-13 15:18:09 +00:00
Anton Blanchard 5a29cb4699 Initial import of microwatt
Signed-off-by: Anton Blanchard <anton@linux.ibm.com>
2019-08-22 16:46:13 +10:00

17 lines
282 B
Python
Executable File

#!/usr/bin/python3
import re
import fileinput
r = re.compile("REG ([0-9A-F]+)");
regs = list()
for line in fileinput.input():
m = r.search(line)
if m:
regs.append(int(m.group(1), 16))
#print("%016X"% int(m.group(1), 16))
print("%x" % hash(tuple(regs)))