diff options
author | Claudio Fontana <claudio.fontana@huawei.com> | 2013-10-21 13:32:27 +0200 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2014-04-25 13:19:58 +0100 |
commit | 1c44f765bbacd8c8b6882b338f2b579a03badbba (patch) | |
tree | 0224629fa0cde24ddb64b835a7522dea23678164 /risugen | |
parent | be55ddfe13da07de1a18b82ffebc043bdd5b9765 (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-x | risugen | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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(); } |