Commit a73666f6564e17adcae2908f7b52d42de2ff5211

Authored by j_mayer
1 parent 6f2d8978

More PowerPC target -1 usage fixes (reservation address).


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3627 c046a42c-6fe2-441c-8c8c-71466251a162
target-ppc/op.c
@@ -1998,7 +1998,7 @@ void OPPROTO op_fneg (void) @@ -1998,7 +1998,7 @@ void OPPROTO op_fneg (void)
1998 void OPPROTO op_check_reservation (void) 1998 void OPPROTO op_check_reservation (void)
1999 { 1999 {
2000 if ((uint32_t)env->reserve == (uint32_t)(T0 & ~0x00000003)) 2000 if ((uint32_t)env->reserve == (uint32_t)(T0 & ~0x00000003))
2001 - env->reserve = -1; 2001 + env->reserve = (target_ulong)-1ULL;
2002 RETURN(); 2002 RETURN();
2003 } 2003 }
2004 2004
target-ppc/op_mem.h
@@ -678,7 +678,7 @@ void OPPROTO glue(op_stwcx, MEMSUFFIX) (void) @@ -678,7 +678,7 @@ void OPPROTO glue(op_stwcx, MEMSUFFIX) (void)
678 env->crf[0] = xer_so | 0x02; 678 env->crf[0] = xer_so | 0x02;
679 } 679 }
680 } 680 }
681 - env->reserve = -1; 681 + env->reserve = (target_ulong)-1ULL;
682 RETURN(); 682 RETURN();
683 } 683 }
684 684
@@ -695,7 +695,7 @@ void OPPROTO glue(op_stwcx_64, MEMSUFFIX) (void) @@ -695,7 +695,7 @@ void OPPROTO glue(op_stwcx_64, MEMSUFFIX) (void)
695 env->crf[0] = xer_so | 0x02; 695 env->crf[0] = xer_so | 0x02;
696 } 696 }
697 } 697 }
698 - env->reserve = -1; 698 + env->reserve = (target_ulong)-1ULL;
699 RETURN(); 699 RETURN();
700 } 700 }
701 701
@@ -711,7 +711,7 @@ void OPPROTO glue(op_stdcx, MEMSUFFIX) (void) @@ -711,7 +711,7 @@ void OPPROTO glue(op_stdcx, MEMSUFFIX) (void)
711 env->crf[0] = xer_so | 0x02; 711 env->crf[0] = xer_so | 0x02;
712 } 712 }
713 } 713 }
714 - env->reserve = -1; 714 + env->reserve = (target_ulong)-1ULL;
715 RETURN(); 715 RETURN();
716 } 716 }
717 717
@@ -727,7 +727,7 @@ void OPPROTO glue(op_stdcx_64, MEMSUFFIX) (void) @@ -727,7 +727,7 @@ void OPPROTO glue(op_stdcx_64, MEMSUFFIX) (void)
727 env->crf[0] = xer_so | 0x02; 727 env->crf[0] = xer_so | 0x02;
728 } 728 }
729 } 729 }
730 - env->reserve = -1; 730 + env->reserve = (target_ulong)-1ULL;
731 RETURN(); 731 RETURN();
732 } 732 }
733 #endif 733 #endif
@@ -744,7 +744,7 @@ void OPPROTO glue(op_stwcx_le, MEMSUFFIX) (void) @@ -744,7 +744,7 @@ void OPPROTO glue(op_stwcx_le, MEMSUFFIX) (void)
744 env->crf[0] = xer_so | 0x02; 744 env->crf[0] = xer_so | 0x02;
745 } 745 }
746 } 746 }
747 - env->reserve = -1; 747 + env->reserve = (target_ulong)-1ULL;
748 RETURN(); 748 RETURN();
749 } 749 }
750 750
@@ -761,7 +761,7 @@ void OPPROTO glue(op_stwcx_le_64, MEMSUFFIX) (void) @@ -761,7 +761,7 @@ void OPPROTO glue(op_stwcx_le_64, MEMSUFFIX) (void)
761 env->crf[0] = xer_so | 0x02; 761 env->crf[0] = xer_so | 0x02;
762 } 762 }
763 } 763 }
764 - env->reserve = -1; 764 + env->reserve = (target_ulong)-1ULL;
765 RETURN(); 765 RETURN();
766 } 766 }
767 767
@@ -777,7 +777,7 @@ void OPPROTO glue(op_stdcx_le, MEMSUFFIX) (void) @@ -777,7 +777,7 @@ void OPPROTO glue(op_stdcx_le, MEMSUFFIX) (void)
777 env->crf[0] = xer_so | 0x02; 777 env->crf[0] = xer_so | 0x02;
778 } 778 }
779 } 779 }
780 - env->reserve = -1; 780 + env->reserve = (target_ulong)-1ULL;
781 RETURN(); 781 RETURN();
782 } 782 }
783 783
@@ -793,7 +793,7 @@ void OPPROTO glue(op_stdcx_le_64, MEMSUFFIX) (void) @@ -793,7 +793,7 @@ void OPPROTO glue(op_stdcx_le_64, MEMSUFFIX) (void)
793 env->crf[0] = xer_so | 0x02; 793 env->crf[0] = xer_so | 0x02;
794 } 794 }
795 } 795 }
796 - env->reserve = -1; 796 + env->reserve = (target_ulong)-1ULL;
797 RETURN(); 797 RETURN();
798 } 798 }
799 #endif 799 #endif