Commit e32664fbd296e962ebb9a731c02e44bc5d1ce3ae

Authored by blueswir1
1 parent c39e3338

Add missing break statements


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3208 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 20 additions and 0 deletions
target-sparc/op_helper.c
... ... @@ -285,8 +285,10 @@ void helper_ld_asi(int asi, int size, int sign)
285 285 switch(size) {
286 286 case 1:
287 287 T1 = (int8_t) ret;
  288 + break;
288 289 case 2:
289 290 T1 = (int16_t) ret;
  291 + break;
290 292 default:
291 293 T1 = ret;
292 294 break;
... ... @@ -551,10 +553,13 @@ void helper_ld_asi(int asi, int size, int sign)
551 553 switch(size) {
552 554 case 2:
553 555 ret = bswap16(ret);
  556 + break;
554 557 case 4:
555 558 ret = bswap32(ret);
  559 + break;
556 560 case 8:
557 561 ret = bswap64(ret);
  562 + break;
558 563 default:
559 564 break;
560 565 }
... ... @@ -567,10 +572,13 @@ void helper_ld_asi(int asi, int size, int sign)
567 572 switch(size) {
568 573 case 1:
569 574 ret = (int8_t) ret;
  575 + break;
570 576 case 2:
571 577 ret = (int16_t) ret;
  578 + break;
572 579 case 4:
573 580 ret = (int32_t) ret;
  581 + break;
574 582 default:
575 583 break;
576 584 }
... ... @@ -590,10 +598,13 @@ void helper_st_asi(int asi, int size)
590 598 switch(size) {
591 599 case 2:
592 600 T0 = bswap16(T0);
  601 + break;
593 602 case 4:
594 603 T0 = bswap32(T0);
  604 + break;
595 605 case 8:
596 606 T0 = bswap64(T0);
  607 + break;
597 608 default:
598 609 break;
599 610 }
... ... @@ -806,10 +817,13 @@ void helper_ld_asi(int asi, int size, int sign)
806 817 switch(size) {
807 818 case 2:
808 819 ret = bswap16(ret);
  820 + break;
809 821 case 4:
810 822 ret = bswap32(ret);
  823 + break;
811 824 case 8:
812 825 ret = bswap64(ret);
  826 + break;
813 827 default:
814 828 break;
815 829 }
... ... @@ -822,10 +836,13 @@ void helper_ld_asi(int asi, int size, int sign)
822 836 switch(size) {
823 837 case 1:
824 838 ret = (int8_t) ret;
  839 + break;
825 840 case 2:
826 841 ret = (int16_t) ret;
  842 + break;
827 843 case 4:
828 844 ret = (int32_t) ret;
  845 + break;
829 846 default:
830 847 break;
831 848 }
... ... @@ -851,10 +868,13 @@ void helper_st_asi(int asi, int size)
851 868 switch(size) {
852 869 case 2:
853 870 T0 = bswap16(T0);
  871 + break;
854 872 case 4:
855 873 T0 = bswap32(T0);
  874 + break;
856 875 case 8:
857 876 T0 = bswap64(T0);
  877 + break;
858 878 default:
859 879 break;
860 880 }
... ...