提交 0c15940f 编写于 作者: Z ZhangZifei

Merge branch 'bputest' of github.com:RISCVERS/nexus-am into bputest

#include <am.h>
#include <klib.h>
#define LINES 128
#define COLLUMNS 128
uint64_t array[LINES][COLLUMNS];
void iteration() {
for(uint64_t i = 0; i < LINES; i++) {
for(uint64_t j = 0; j < COLLUMNS; j++) {
array[i][j] = i + j;
}
}
}
int main() {
printf("Test start!\n");
iteration();
printf("Test end!\n");
return 0;
}
for t in $(ls tests);
do
echo ${t%.c}
make ARCH=riscv64-noop ALL=${t%.c} run 2>&1 | tee > build/${t%.c}.log
cat build/${t%.c}.log | grep "HIT GOOD TRAP"
done
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册