aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHoward Mao <zhehao.mao@gmail.com>2016-12-05 22:09:43 -0800
committerHoward Mao <zhehao.mao@gmail.com>2016-12-05 22:09:43 -0800
commit665128f95eb2f0aa854006c4b58db2139d39a5ab (patch)
treeb503bf1a546d6d709877d7af5cbb62bfe16c5d67
parent5a7992192ef63d6f4f37a5393f734291e32f6b40 (diff)
downloadriscv-tests-dma-memcpy.zip
riscv-tests-dma-memcpy.tar.gz
riscv-tests-dma-memcpy.tar.bz2
Revert "put arrays in stack to reduce .bss size"dma-memcpy
This reverts commit 5a7992192ef63d6f4f37a5393f734291e32f6b40.
-rw-r--r--benchmarks/dma-memcpy/dma_memcpy_main.c5
-rw-r--r--benchmarks/memcpy/memcpy_main.c5
2 files changed, 6 insertions, 4 deletions
diff --git a/benchmarks/dma-memcpy/dma_memcpy_main.c b/benchmarks/dma-memcpy/dma_memcpy_main.c
index d0a673c..029b22c 100644
--- a/benchmarks/dma-memcpy/dma_memcpy_main.c
+++ b/benchmarks/dma-memcpy/dma_memcpy_main.c
@@ -6,10 +6,11 @@
#define MAX_SIZE 256 * 1024
#define START_SIZE 1024
+int a[MAX_SIZE / sizeof(int)];
+int b[MAX_SIZE / sizeof(int)];
+
void thread_entry(int cid, int nc)
{
- int a[MAX_SIZE / sizeof(int)];
- int b[MAX_SIZE / sizeof(int)];
int copy_size = START_SIZE;
diff --git a/benchmarks/memcpy/memcpy_main.c b/benchmarks/memcpy/memcpy_main.c
index 8d78df6..2284530 100644
--- a/benchmarks/memcpy/memcpy_main.c
+++ b/benchmarks/memcpy/memcpy_main.c
@@ -6,12 +6,13 @@
#define MAX_SIZE 256 * 1024
#define START_SIZE 1024
+int a[MAX_SIZE / sizeof(int)];
+int b[MAX_SIZE / sizeof(int)];
+
void thread_entry(int cid, int nc)
{
int copy_size = START_SIZE;
- int a[MAX_SIZE / sizeof(int)];
- int b[MAX_SIZE / sizeof(int)];
fill(a, MAX_SIZE / sizeof(uint64_t));