Commit 08eb498
committed
fix(difftest): add mask for RefillEvent and remove idtfr
After #3051, we have supported low-power read (read only 5 out of 8
8B-banks) in ICacheDataArray, and in V3, it was further modified to
dynamically compute the mask based on the taken branch location.
Though, previous DiffRefillEvent does not support masked comparison,
instead it checks entire 512bit, so it will fail if we enable checks on
cacheid >=3 (OpenXiangShan/difftest#712). As we're refactoring ICache
recently, we need this check to ensure the refactored code is working
properly.
This commit removes unused idtfr and introduces masked refill-check,
each mask bit controls comparison of 8B data.
Co-authored-by: ngc7331 <ngc7331@outlook.com>
fix refill1 parent 7a64d71 commit 08eb498
File tree
4 files changed
+23
-25
lines changed- src/main/scala/xiangshan
- cache
- dcache/mainpipe
- mmu
- frontend/icache
4 files changed
+23
-25
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1297 | 1297 | | |
1298 | 1298 | | |
1299 | 1299 | | |
1300 | | - | |
| 1300 | + | |
1301 | 1301 | | |
1302 | 1302 | | |
1303 | 1303 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
553 | 553 | | |
554 | 554 | | |
555 | 555 | | |
556 | | - | |
| 556 | + | |
557 | 557 | | |
558 | 558 | | |
559 | 559 | | |
| |||
Lines changed: 20 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
643 | 643 | | |
644 | 644 | | |
645 | 645 | | |
646 | | - | |
647 | | - | |
648 | | - | |
649 | | - | |
650 | | - | |
651 | | - | |
652 | | - | |
653 | | - | |
654 | | - | |
655 | | - | |
656 | | - | |
657 | | - | |
658 | | - | |
659 | | - | |
660 | | - | |
661 | | - | |
662 | | - | |
663 | | - | |
664 | | - | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
665 | 658 | | |
666 | | - | |
667 | | - | |
668 | | - | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
669 | 667 | | |
670 | 668 | | |
671 | 669 | | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
476 | 476 | | |
477 | 477 | | |
478 | 478 | | |
479 | | - | |
| 479 | + | |
480 | 480 | | |
481 | 481 | | |
0 commit comments