* don't push cs in ti8086callnode.extra_interrupt_code in the far code memory

models, because in these models, interrupt procedures are treated as far and
  an appropriate far call (or push cs+near call if in the same segment) is made
  anyway

git-svn-id: trunk@27622 -
This commit is contained in:
nickysn 2014-04-21 00:56:51 +00:00
parent 70a7ecd0fa
commit 8a606761cd

View File

@ -60,7 +60,8 @@ implementation
procedure ti8086callnode.extra_interrupt_code;
begin
emit_none(A_PUSHF,S_W);
emit_reg(A_PUSH,S_W,NR_CS);
if current_settings.x86memorymodel in x86_near_code_models then
emit_reg(A_PUSH,S_W,NR_CS);
end;