projects
/
riscv-isa-sim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
efdd182
)
remove auto-gen of #define for suboffset args
author
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Fri, 28 Jun 2019 10:06:32 +0000
(11:06 +0100)
committer
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Fri, 28 Jun 2019 10:06:32 +0000
(11:06 +0100)
id_regs.py
patch
|
blob
|
history
diff --git
a/id_regs.py
b/id_regs.py
index 04d91633b067e85adb656c2972766966d4c802a5..7525aca4651962003c00b70002266a2668f7c47c 100644
(file)
--- a/
id_regs.py
+++ b/
id_regs.py
@@
-202,13
+202,9
@@
def find_registers(fname, insn, twin_predication, immed_offset, is_branch):
res.append('#define PRED_ARGS %s' % ','.join(predargs))
offsargs = []
- suboargs = []
for i in range(len(predargs)):
offsargs.append(predargs[i].replace('pred', 'offs').replace("&", ''))
res.append('#define OFFS_ARGS %s' % ','.join(offsargs))
- for i in range(len(predargs)):
- suboargs.append(predargs[i].replace('pred', 'subo').replace("&", ''))
- res.append('#define SUBO_ARGS %s' % ','.join(suboargs))
return '\n'.join(res)