ソースを参照

* use yield on PowerPC64 only

florian 2 週間 前
コミット
44d614e4be
1 ファイル変更2 行追加0 行削除
  1. 2 0
      compiler/ppcgen/ngppcinl.pas

+ 2 - 0
compiler/ppcgen/ngppcinl.pas

@@ -102,9 +102,11 @@ implementation
        begin
        begin
          case inlinenumber of
          case inlinenumber of
            in_ppc_yield:
            in_ppc_yield:
+{$ifdef powerpc64}
              if current_settings.cputype >= cpu_power7 then
              if current_settings.cputype >= cpu_power7 then
                current_asmdata.CurrAsmList.concat(taicpu.op_none(A_YIELD))
                current_asmdata.CurrAsmList.concat(taicpu.op_none(A_YIELD))
              else
              else
+{$endif powerpc64}
                current_asmdata.CurrAsmList.concat(taicpu.op_reg_reg_reg(A_OR,NR_R27,NR_R27,NR_R27));
                current_asmdata.CurrAsmList.concat(taicpu.op_reg_reg_reg(A_OR,NR_R27,NR_R27,NR_R27));
            else
            else
              inherited pass_generate_code_cpu;
              inherited pass_generate_code_cpu;