ソースを参照

* support reg=NR_NO in thlcgcpu.reference_reset_base on i8086. This fixes test
webtbs/tw26162.pp in the i8086 far data memory models.

git-svn-id: trunk@27807 -

nickysn 11 年 前
コミット
feb840b47f
1 ファイル変更2 行追加1 行削除
  1. 2 1
      compiler/i8086/hlcgcpu.pas

+ 2 - 1
compiler/i8086/hlcgcpu.pas

@@ -271,7 +271,8 @@ implementation
             ref.segment:=NR_GS;
           x86pt_far,
           x86pt_huge:
-            ref.segment:=GetNextReg(reg);
+            if reg<>NR_NO then
+              ref.segment:=GetNextReg(reg);
         end;
     end;