X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=id_regs.py;h=cd82b60a1affcef49d37c91d28eea360b3228b59;hb=833752a4ba3a70eb50aa51193409295a7ecceb55;hp=49f68b0ac94ed91c2e47c0eecc53cf8aad83625f;hpb=37a9762f8bd82f66397ba1cfa1215660247b1e66;p=riscv-isa-sim.git diff --git a/id_regs.py b/id_regs.py index 49f68b0..cd82b60 100644 --- a/id_regs.py +++ b/id_regs.py @@ -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)