提交 32ba9528 编写于 作者: Z zhanglinjuan

add test/bputest

上级 374ff58b
NAME = bputest
SRCS = $(shell find -L ./src/ -name "*.c" -o -name "*.cpp")
ARCH = x86-qemu
include $(AM_HOME)/Makefile.app
#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.
先完成此消息的编辑!
想要评论请 注册