diff options
author | Andrew Waterman <andrew@sifive.com> | 2024-07-24 16:23:11 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-24 16:23:11 -0700 |
commit | 07b21cc5143a15959eda12e30aa40cea0971efe0 (patch) | |
tree | 32a3a92fc5c8464f81073cbf4212534d143da339 | |
parent | 048218e19195949342636ff69f4b743da167f91f (diff) | |
parent | 9a56ab24a89f5e921412a9a4acc392773db55c51 (diff) | |
download | riscv-opcodes-07b21cc5143a15959eda12e30aa40cea0971efe0.zip riscv-opcodes-07b21cc5143a15959eda12e30aa40cea0971efe0.tar.gz riscv-opcodes-07b21cc5143a15959eda12e30aa40cea0971efe0.tar.bz2 |
Merge pull request #262 from NyembeziIMG/fix_pseudo_missing_extensions
Fix Missing Extensions in Pseudo Instructions
-rwxr-xr-x | parse.py | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -336,6 +336,13 @@ def create_inst_dict(file_filter, include_pseudo=False, include_pseudo_ops=[]): if name not in instr_dict: instr_dict[name] = single_dict logging.debug(f' including pseudo_ops:{name}') + else: + # if a pseudo instruction has already been added to the filtered + # instruction dictionary but the extension is not in the current + # list, add it + ext_name = single_dict['extension'] + if ext_name not in instr_dict[name]['extension']: + instr_dict[name]['extension'].extend(ext_name) else: logging.debug(f' Skipping pseudo_op {pseudo_inst} since original instruction {orig_inst} already selected in list') |