aboutsummaryrefslogtreecommitdiff
path: root/risugen
diff options
context:
space:
mode:
authorClaudio Fontana <claudio.fontana@huawei.com>2013-10-21 13:32:27 +0200
committerPeter Maydell <peter.maydell@linaro.org>2014-04-25 13:19:58 +0100
commit1c44f765bbacd8c8b6882b338f2b579a03badbba (patch)
tree0224629fa0cde24ddb64b835a7522dea23678164 /risugen
parentbe55ddfe13da07de1a18b82ffebc043bdd5b9765 (diff)
risugen: control re-randomization of registers with a flag
use a global flag to control whether to re-randomize registers periodically. This is useful for debugging purposes. Signed-off-by: Claudio Fontana <claudio.fontana@linaro.org>
Diffstat (limited to 'risugen')
-rwxr-xr-xrisugen4
1 files changed, 3 insertions, 1 deletions
diff --git a/risugen b/risugen
index 5a9e039..b1232c3 100755
--- a/risugen
+++ b/risugen
@@ -19,6 +19,8 @@ use Getopt::Long;
use Data::Dumper;
use Text::Balanced qw { extract_bracketed extract_multiple };
+my $periodic_reg_random = 1;
+
my @insns;
my %insn_details;
@@ -955,7 +957,7 @@ sub write_test_code($$$)
write_risuop($OP_COMPARE);
# Rewrite the registers periodically. This avoids the tendency
# for the VFP registers to decay to NaNs and zeroes.
- if (($i % 100) == 0) {
+ if ($periodic_reg_random && ($i % 100) == 0) {
write_random_register_data();
write_switch_to_test_mode();
}