aboutsummaryrefslogtreecommitdiff
path: root/risugen
diff options
context:
space:
mode:
authorClaudio Fontana <claudio.fontana@huawei.com>2013-10-16 12:39:53 +0200
committerPeter Maydell <peter.maydell@linaro.org>2014-04-25 13:19:58 +0100
commit080227aa765cd4765400a89f0c9fb83dfbcbed08 (patch)
tree9a3862080f23e41b76840bc51778188b13145cb7 /risugen
parent8a01937a7c2e08c4e72f60255fd57cca5b859a4b (diff)
risugen: go back to storing 8192 bytes of random data
go back to store 8192 bytes of random data, even though we actually use only the first 2K. Signed-off-by: Claudio Fontana <claudio.fontana@linaro.org>
Diffstat (limited to 'risugen')
-rwxr-xr-xrisugen9
1 files changed, 3 insertions, 6 deletions
diff --git a/risugen b/risugen
index 83dd5ec..5fcd808 100755
--- a/risugen
+++ b/risugen
@@ -522,15 +522,12 @@ sub write_jump_fwd($)
sub write_memblock_setup()
{
# Write code which sets up the memory block for loads and stores.
- # We just need to set r0 to point to a block of at least 2K length
- # of random data, aligned to the maximum desired alignment (32).
-
- # XXX (claudio) the comment above says 2K. Is it length in bytes?
- # if so, the following is ok, and is a change from before.
+ # We set r0 to point to a block of 8K length
+ # of random data, aligned to the maximum desired alignment.
write_switch_to_arm();
my $align = $MAXALIGN;
- my $datalen = 2048 + $align;
+ my $datalen = 8192 + $align;
if (($align > 255) || !is_pow_of_2($align) || $align < 4) {
die "bad alignment!";
}