aboutsummaryrefslogtreecommitdiff
path: root/risugen
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2016-11-07 16:12:17 +0000
committerPeter Maydell <peter.maydell@linaro.org>2016-11-07 16:12:17 +0000
commit49dc8e94217e42c5c409386466096b0642c10331 (patch)
tree6c2dbb1ddc2cd6b3ecd623a3d26070d58e11ee98 /risugen
parent5623a2f97320d05cd10344ba5a3ea7e7131eafca (diff)
risugen: Sort the instruction keys
Use 'sort keys %insn_details' rather than just 'keys %insn_details'; this doesn't affect correctness of the output, but does make it deterministic from run to run. Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'risugen')
-rwxr-xr-xrisugen2
1 files changed, 1 insertions, 1 deletions
diff --git a/risugen b/risugen
index 892a6dc..a0ad6eb 100755
--- a/risugen
+++ b/risugen
@@ -1007,7 +1007,7 @@ sub write_test_code($$$$)
srand(0);
# Get a list of the insn keys which are permitted by the re patterns
- my @keys = keys %insn_details;
+ my @keys = sort keys %insn_details;
if (@pattern_re) {
my $re = '\b((' . join(')|(',@pattern_re) . '))\b';
@keys = grep /$re/, @keys;