aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2017-02-24 16:14:09 +0000
committerPeter Maydell <peter.maydell@linaro.org>2017-02-24 16:15:27 +0000
commit5f9df2543d5f3d31f934d864490e0e28938c806b (patch)
tree7ad3d6da65cc403fe5941a12a7d1ee339ec3359c
parentd0483b1e5f6a28c89e3666ca84b65f0035dd67df (diff)
risugen_common.pm: Fix broken $bytecount syntax again
Commit e2fc2609b29c00c wasn't quite correct; exporting a 'my $foo' variable works syntactically but creates a different variable in the using module to the one in the common module, causing 'uninitialized variable' warnings at runtime. Instead we need to create a package variable with 'our $foo'. Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
-rw-r--r--risugen_common.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/risugen_common.pm b/risugen_common.pm
index 4e9301e..71ee996 100644
--- a/risugen_common.pm
+++ b/risugen_common.pm
@@ -29,7 +29,7 @@ BEGIN {
dump_insn_details);
}
-my $bytecount;
+our $bytecount;
my $bigendian = 0;