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