reorganise twin-predication
[riscv-isa-sim.git] / id_regs.py
index 49f68b0ac94ed91c2e47c0eecc53cf8aad83625f..cd82b60a1affcef49d37c91d28eea360b3228b59 100644 (file)
@@ -141,6 +141,10 @@ def find_registers(fname, twin_predication):
             res.append('#define SRC_REG %s' % found)
 
     res.append('#define PRED_ARGS %s' % ','.join(predargs))
+    offsargs = []
+    for i in range(4):
+        offsargs.append(predargs[i].replace('pred', 'offs'))
+    res.append('#define OFFS_ARGS %s' % ','.join(offsargs))
 
     return '\n'.join(res)