Commit graph

78 commits

Author SHA1 Message Date
3ee527c3de
ci: add auto build ci
Some checks failed
Build nix packages / build-matrix (am-kernels) (push) Failing after 47s
Build nix packages / build-matrix (rv32Cross.am-kernels-nemu) (push) Successful in 1m0s
Build nix packages / build-matrix (rv32Cross.am-kernels-npc) (push) Successful in 42s
2024-08-14 14:30:32 +08:00
0b911f75ce
am-tests,microbench,yield-os: CMake support 2024-08-13 20:24:57 +08:00
02b38e7b44
build: nix package 2024-07-12 16:45:56 +08:00
9d41ac2f7b
build: add more tests to build system 2024-07-09 17:44:09 +08:00
2f559823a6
build: add cmake as build system 2024-03-25 16:49:08 +08:00
Zihao Yu
bb725d6f82 kernels,demo,donut: only clear screen before drawing
* Originally, if it need too much computation in a slow platform,
  clearing screen before computation will only show the donut during a
  short time.
2024-02-20 14:53:20 +08:00
Zihao Yu
dbe346eb85 tests,cpu-tests,Makefile: refine 2024-02-20 14:51:47 +08:00
Zihao Yu
2e7c5934ed benchmark: return error when fail 2024-02-20 14:51:11 +08:00
Zihao Yu
d41f447c17 kernels,typing-game: clear screen by scanline
* we can leverage memcpy() to speedup
2024-01-17 09:37:37 +08:00
Zihao Yu
ade50b257a kernels,typing-game: assume uptime does not start from zero
* on platform tha can re-run the game, the game will skip some beginning
  frames in the second run
2024-01-17 09:37:30 +08:00
Zihao Yu
9e19ebc991
Merge pull request #11 from Wenz-jam/master
fix: uint32_t overflow in format_time
2024-01-16 16:58:45 +08:00
江牛
1dc914a675
fix uint32_t overflow in format_time 2024-01-16 16:09:54 +08:00
Zihao Yu
33c0dd0d85 am-tests,keyboard: fix comparison of char
* The sign of char is implemention-defined. char is unsigned in RISC-V.
2024-01-10 23:48:00 +08:00
Zihao Yu
7bb7b1a94f add bad-apple 2023-11-14 23:35:57 +08:00
Zihao Yu
9486898b81 tests,alu-tests: fix printf format error caused by -2147483648
* This error is reported by clang, but it is suppressed by -fno-builtin
  in gcc.
2023-11-13 12:05:30 +08:00
Zihao Yu
d918fc429f tests,alu-tests: fix errors reported by -Wall and -Werror 2023-11-13 12:05:15 +08:00
Zihao Yu
0bab7cb226
Merge pull request #6 from rijuyuezhu/master
[FIX]  am-kernels/kernels/demo/src/hanoi/hanoi.c: pattern not shown on the screen of nemu due to no sync of GPU FB
2023-10-11 17:06:58 +08:00
Wenrui Huang
3c50c2eae3
[FIX] am-kernels/kernels/demo/src/hanoi/hanoi.c: pattern not shown on the screen of nemu due to no sync of GPU FB 2023-10-11 16:39:44 +08:00
gftytkklt
0c1f038ad0 kernels,demo,life: fix stack overflow in nemu
* allocate arrays with malloc()
2023-10-09 11:04:32 +08:00
Zihao Yu
773fa2b997 add license for alu-tests and snake 2023-10-03 21:04:37 +08:00
Zihao Yu
6f4a47afb9 add yield-os 2023-10-03 15:33:38 +08:00
Zihao Yu
86c5532674 am-tests,intr: add panic message 2023-10-03 15:28:47 +08:00
Zihao Yu
4707aefcc5 kernels: merge bf to demo 2023-07-22 22:11:02 +08:00
Zihao Yu
c5bcf378e8 kernels: add some demos from movfuscator and rt-thread 2023-07-22 22:10:51 +08:00
Zihao Yu
3388801aea kernels,snake: port to AM 2023-07-21 11:00:02 +08:00
Zihao Yu
ec82e0f2cd kernels: import snake from movfuscator 2023-07-21 10:59:30 +08:00
Zihao Yu
53cc98e4c0 tests,cpu-tests,Makefile: remove klib since it is added by default 2023-07-21 10:52:58 +08:00
Zihao Yu
1cf8c67eb6 kernels,bf: port to AM 2023-07-01 01:25:46 +08:00
Zihao Yu
b122a7fa12 kernels: import bf from movfuscator 2023-07-01 01:12:31 +08:00
Zihao Yu
6b5c2ad2d3 tests,cpu-test: add more tests from movfuscator 2023-07-01 00:56:02 +08:00
Zihao Yu
d336e55bc3 tests,alu-tests: refine
* use volatile to prevent compiler optimization
* only output failed tests
* output with line number in the generated C file
* return 1 if some tests fail
* disable floating-point tests
2023-07-01 00:52:47 +08:00
Zihao Yu
fbc2739875 tests: add alu-test from movfuscator
* https://github.com/xoreaxeaxeax/movfuscator
2023-07-01 00:51:15 +08:00
Zihao Yu
245c069c4e thread-os: fix stack overflow with glibc 2.39
* `Inconsistency detected by ld.so: dl-runtime.c: 63: _dl_fixup:
  Assertion `ELFW(R_TYPE)(reloc->r_info) == ELF_MACHINE_JMP_SLOT' failed!`
2023-07-01 00:44:58 +08:00
Zihao Yu
adc316af6e cpu-tests,Makefile: support target gdb 2021-10-20 12:56:40 +08:00
Zihao Yu
c03fc2b97b nemu: restore previous config when it fails to build the AM version 2021-08-27 19:26:36 +08:00
Zihao Yu
3433d0f8db remove unused file 2021-08-21 15:30:29 +08:00
Zihao Yu
6052ab0244 kernels: support NEMU over AM 2021-08-16 17:09:25 +08:00
Zihao Yu
56c864d5ef tests,cpu-tests,Makefile: report run results 2021-08-13 18:04:41 +08:00
Zihao Yu
8a1caa1db3 remove x attribute 2021-08-11 16:59:18 +08:00
Zihao Yu
5e7cd0c7f2 am-tests,intr: change printf() to putch() 2021-08-11 16:55:49 +08:00
Zihao Yu
f3af11ebbf cpu-tests,Makefile: remove unused rules 2021-08-11 16:55:34 +08:00
Yanyan Jiang
87c35f8f19 fix mmc multi def bug 2021-08-11 16:54:48 +08:00
Zihao Yu
a3d742d259 microbench: avoid %03d in the format string 2021-08-11 16:54:23 +08:00
Zihao Yu
1a008865df microbench: explicitly use uint32_t for score and uint64_t for usec 2021-08-11 16:54:23 +08:00
Zihao Yu
e45d2189d9 microbench: change REF_CPU to i9-9900k 2021-08-11 16:54:23 +08:00
Zihao Yu
e611fa70d2 microbench: set correct checksum for huge input 2021-08-11 16:54:23 +08:00
Zihao Yu
54f5c1f8fa microbench: add huge input 2021-08-11 16:54:23 +08:00
Zihao Yu
f4f447c422 microbench: use us precision timer 2021-08-11 16:54:23 +08:00
Zihao Yu
242c1f1f53 tests,cpu-tests,string: test the return value of strcmp() according to the manual 2021-08-11 16:52:42 +08:00
Zihao Yu
1d1ff1431d tools: add gitignore for export/ 2021-08-11 16:52:42 +08:00