Commit f0d6885
committed
simx86: DoExec/NodeLinker cleanups for F_SLFJ/MTRAP/loop
Using TheCPU.eip for the block we can reliably detect forever loops
for the last block. The node linker doesn't need to care about
blocks with F_SLFJ then any more. On the other hand it should
never link blocks that set trap exceptions (mode & MTRAP).
Flagging back refs in the node linker can then be limited to blocks
with F_FPOP (the original purpose of that flagging).
This all simplifies the fast loop in DoExec, it's only skipped
for one-offs (F_SPEC/F_LEAV) or if we want debug logging.1 parent 89b8386 commit f0d6885
2 files changed
+18
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
579 | 579 | | |
580 | 580 | | |
581 | 581 | | |
582 | | - | |
583 | | - | |
| 582 | + | |
584 | 583 | | |
585 | 584 | | |
586 | 585 | | |
587 | | - | |
588 | | - | |
589 | | - | |
590 | | - | |
591 | | - | |
592 | 586 | | |
593 | 587 | | |
594 | 588 | | |
| |||
682 | 676 | | |
683 | 677 | | |
684 | 678 | | |
685 | | - | |
| 679 | + | |
686 | 680 | | |
687 | 681 | | |
688 | | - | |
689 | | - | |
| 682 | + | |
690 | 683 | | |
691 | 684 | | |
692 | 685 | | |
693 | 686 | | |
694 | | - | |
695 | 687 | | |
696 | 688 | | |
697 | 689 | | |
698 | 690 | | |
699 | 691 | | |
700 | | - | |
| 692 | + | |
701 | 693 | | |
702 | 694 | | |
703 | 695 | | |
| |||
721 | 713 | | |
722 | 714 | | |
723 | 715 | | |
724 | | - | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
725 | 727 | | |
| 728 | + | |
726 | 729 | | |
727 | 730 | | |
728 | 731 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
751 | 751 | | |
752 | 752 | | |
753 | 753 | | |
754 | | - | |
| 754 | + | |
755 | 755 | | |
756 | 756 | | |
757 | 757 | | |
| |||
787 | 787 | | |
788 | 788 | | |
789 | 789 | | |
790 | | - | |
| 790 | + | |
791 | 791 | | |
792 | 792 | | |
793 | 793 | | |
| |||
0 commit comments