nexus-am/apps/icache-ecc-test
xu_zh 95bfbf49fc
feat(apps): add icache ecc test (#48)
Add test for https://github.com/OpenXiangShan/XiangShan/pull/4044

Example log:
```
The first instruction of core 0 has commited. Difftest enabled. 
Setup
Hello, World @ 0!
Test
=== [0] Inject metaArray ===
ECC inject start! eccctrl=0x3
ECC inject done! eccctrl=0x21
No error, call target()
Hello, World @ 1!
=== [0] Test passed! ===

=== [1] Inject dataArray ===
ECC inject start! eccctrl=0xb
ECC inject done! eccctrl=0x29
No error, call target()
Hello, World @ 2!
=== [1] Test passed! ===

=== [2] Inject to invalid target ===
ECC inject start! eccctrl=0x7
ECC inject done! eccctrl=0xf5
=== [2] Test passed! ===

=== [3] Inject when ecc not enabled ===
ECC inject start! eccctrl=0x2
ECC inject done! eccctrl=0x70
=== [3] Test passed! ===

=== [4] Inject to invalid address ===
ECC inject start! eccctrl=0x3
ECC inject done! eccctrl=0x171
=== [4] Test passed! ===

Core 0: HIT GOOD TRAP at pc = 0x8000031a
```
2025-05-28 09:39:26 +08:00
..
Makefile feat(apps): add icache ecc test (#48) 2025-05-28 09:39:26 +08:00
eccctrl.h feat(apps): add icache ecc test (#48) 2025-05-28 09:39:26 +08:00
main.c feat(apps): add icache ecc test (#48) 2025-05-28 09:39:26 +08:00