src/cpu/mips/vm/macroAssembler_mips.cpp

changeset 9808
a9451177555c
parent 9705
0b27fc8adf1b
child 9932
86ea9a02a717
     1.1 --- a/src/cpu/mips/vm/macroAssembler_mips.cpp	Wed Feb 05 00:26:59 2020 +0800
     1.2 +++ b/src/cpu/mips/vm/macroAssembler_mips.cpp	Thu Feb 13 19:16:02 2020 +0800
     1.3 @@ -1,6 +1,6 @@
     1.4  /*
     1.5   * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
     1.6 - * Copyright (c) 2017, 2019, Loongson Technology. All rights reserved.
     1.7 + * Copyright (c) 2017, 2020, Loongson Technology. All rights reserved.
     1.8   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.9   *
    1.10   * This code is free software; you can redistribute it and/or modify it
    1.11 @@ -466,7 +466,7 @@
    1.12  
    1.13    li(tmp_reg1, counter_addr);
    1.14    bind(again);
    1.15 -  if(UseSyncLevel >= 3000 || UseSyncLevel < 2000) sync();
    1.16 +  if (UseSyncLevel >= 10000 || UseSyncLevel == 1000 || UseSyncLevel == 4000) sync();
    1.17    ll(tmp_reg2, tmp_reg1, 0);
    1.18    addi(tmp_reg2, tmp_reg2, inc);
    1.19    sc(tmp_reg2, tmp_reg1, 0);
    1.20 @@ -2517,7 +2517,7 @@
    1.21  
    1.22    bind(again);
    1.23  
    1.24 -  if(UseSyncLevel >= 3000 || UseSyncLevel < 2000) sync();
    1.25 +  if (UseSyncLevel >= 10000 || UseSyncLevel == 1000 || UseSyncLevel == 4000) sync();
    1.26    ll(AT, dest);
    1.27    bne(AT, c_reg, nequal);
    1.28    delayed()->nop();
    1.29 @@ -2543,7 +2543,7 @@
    1.30    Label done, again, nequal;
    1.31  
    1.32    bind(again);
    1.33 -  if(UseSyncLevel >= 3000 || UseSyncLevel < 2000) sync();
    1.34 +  if (UseSyncLevel >= 10000 || UseSyncLevel == 1000 || UseSyncLevel == 4000) sync();
    1.35  #ifdef _LP64
    1.36    lld(AT, dest);
    1.37  #else
    1.38 @@ -2589,7 +2589,7 @@
    1.39  
    1.40    bind(again);
    1.41  
    1.42 -  if(UseSyncLevel >= 3000 || UseSyncLevel < 2000) sync();
    1.43 +  if (UseSyncLevel >= 10000 || UseSyncLevel == 1000 || UseSyncLevel == 4000) sync();
    1.44    lld(AT, dest);
    1.45    bne(AT, c_reg, nequal);
    1.46    delayed()->nop();

mercurial