aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKito Cheng <kito.cheng@sifive.com>2020-03-30 12:34:26 +0800
committerGitHub <noreply@github.com>2020-03-29 21:34:26 -0700
commitdd6a30b9faa7fa0ae3c336835f980bb185cea246 (patch)
tree991a8483b22ac002655d680509345b984b7d4c37
parent231c5d58940113b006aa9fa22f47c18d5fac4123 (diff)
downloadriscv-opcodes-dd6a30b9faa7fa0ae3c336835f980bb185cea246.zip
riscv-opcodes-dd6a30b9faa7fa0ae3c336835f980bb185cea246.tar.gz
riscv-opcodes-dd6a30b9faa7fa0ae3c336835f980bb185cea246.tar.bz2
Using OrderedDict to keep encodings for match/mask. (#38)
- Prevent got different result in different python env.
-rwxr-xr-xparse_opcodes5
1 files changed, 3 insertions, 2 deletions
diff --git a/parse_opcodes b/parse_opcodes
index 59b9bff..1a82615 100755
--- a/parse_opcodes
+++ b/parse_opcodes
@@ -6,10 +6,11 @@ from builtins import range
import math
import sys
import tokenize
+from collections import OrderedDict
namelist = []
-match = {}
-mask = {}
+match = OrderedDict()
+mask = OrderedDict()
pseudos = {}
arguments = {}