Commit abd5f00
committed
simx86: lret etc: new eip value in protmode via Sim_helper return
We can avoid setting TheCPU.eip if Sim_helper returns the new
eip in eax, and as vm86 iret already calls Sim_helper anyway,
use it for the cs:eip handling as well.
So now the only places left that set TheCPU.eip are RETl
and RETlisp in vm86, which are fully compiled there. Modifying
O_POP2 and A_SR_SH4 to avoid %eax is a little tricky.1 parent 4ebec28 commit abd5f00
2 files changed
+13
-19
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3096 | 3096 | | |
3097 | 3097 | | |
3098 | 3098 | | |
3099 | | - | |
| 3099 | + | |
| 3100 | + | |
3100 | 3101 | | |
3101 | 3102 | | |
3102 | 3103 | | |
3103 | 3104 | | |
3104 | 3105 | | |
3105 | | - | |
| 3106 | + | |
3106 | 3107 | | |
3107 | 3108 | | |
3108 | 3109 | | |
3109 | 3110 | | |
3110 | | - | |
| 3111 | + | |
3111 | 3112 | | |
3112 | 3113 | | |
3113 | 3114 | | |
3114 | 3115 | | |
3115 | 3116 | | |
3116 | 3117 | | |
3117 | | - | |
| 3118 | + | |
| 3119 | + | |
| 3120 | + | |
| 3121 | + | |
| 3122 | + | |
3118 | 3123 | | |
3119 | | - | |
3120 | | - | |
3121 | | - | |
| 3124 | + | |
| 3125 | + | |
3122 | 3126 | | |
3123 | 3127 | | |
3124 | 3128 | | |
3125 | 3129 | | |
3126 | | - | |
3127 | 3130 | | |
3128 | 3131 | | |
3129 | 3132 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
323 | 323 | | |
324 | 324 | | |
325 | 325 | | |
326 | | - | |
327 | | - | |
328 | 326 | | |
329 | 327 | | |
330 | 328 | | |
| |||
1695 | 1693 | | |
1696 | 1694 | | |
1697 | 1695 | | |
| 1696 | + | |
1698 | 1697 | | |
1699 | 1698 | | |
1700 | 1699 | | |
| |||
1773 | 1772 | | |
1774 | 1773 | | |
1775 | 1774 | | |
| 1775 | + | |
1776 | 1776 | | |
1777 | 1777 | | |
1778 | 1778 | | |
| |||
1784 | 1784 | | |
1785 | 1785 | | |
1786 | 1786 | | |
1787 | | - | |
1788 | | - | |
1789 | | - | |
1790 | | - | |
1791 | | - | |
1792 | | - | |
1793 | | - | |
1794 | | - | |
1795 | | - | |
1796 | 1787 | | |
1797 | 1788 | | |
1798 | 1789 | | |
| |||
0 commit comments