aboutsummaryrefslogtreecommitdiff
path: root/parse.py
diff options
context:
space:
mode:
authorNeel Gala <neelgala@incoresemi.com>2022-06-09 19:14:05 +0530
committerNeel Gala <neelgala@incoresemi.com>2022-06-09 19:14:05 +0530
commitdbd88597fd400ceec557e4b3d20371f821c90b0b (patch)
treee561095da8d3899c2c43ef7124ecc2180eca69a2 /parse.py
parent08ca2b1ed5fcce8d08bd61a861e71f6e222905eb (diff)
downloadriscv-opcodes-dbd88597fd400ceec557e4b3d20371f821c90b0b.zip
riscv-opcodes-dbd88597fd400ceec557e4b3d20371f821c90b0b.tar.gz
riscv-opcodes-dbd88597fd400ceec557e4b3d20371f821c90b0b.tar.bz2
sort the filenames in reverse-alphabetical order
This is to ensure that pseudo instructions like slli are added from rv64i instead of rv32i
Diffstat (limited to 'parse.py')
-rwxr-xr-xparse.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse.py b/parse.py
index 482dd69..d54b9d5 100755
--- a/parse.py
+++ b/parse.py
@@ -177,7 +177,7 @@ def create_inst_dict(file_filter, include_pseudo=False):
file_names = []
for fil in file_filter:
file_names += glob.glob(f'{opcodes_dir}{fil}')
-
+ file_names.sort(reverse=True)
# first pass if for standard/regular instructions
logging.debug('Collecting standard instructions first')
for f in file_names: