From e32664fbd296e962ebb9a731c02e44bc5d1ce3ae Mon Sep 17 00:00:00 2001 From: blueswir1 Date: Sun, 23 Sep 2007 11:40:57 +0000 Subject: Add missing break statements git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3208 c046a42c-6fe2-441c-8c8c-71466251a162 --- target-sparc/op_helper.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'target-sparc') diff --git a/target-sparc/op_helper.c b/target-sparc/op_helper.c index c168252d1d..21ae5dec2b 100644 --- a/target-sparc/op_helper.c +++ b/target-sparc/op_helper.c @@ -285,8 +285,10 @@ void helper_ld_asi(int asi, int size, int sign) switch(size) { case 1: T1 = (int8_t) ret; + break; case 2: T1 = (int16_t) ret; + break; default: T1 = ret; break; @@ -551,10 +553,13 @@ void helper_ld_asi(int asi, int size, int sign) switch(size) { case 2: ret = bswap16(ret); + break; case 4: ret = bswap32(ret); + break; case 8: ret = bswap64(ret); + break; default: break; } @@ -567,10 +572,13 @@ void helper_ld_asi(int asi, int size, int sign) switch(size) { case 1: ret = (int8_t) ret; + break; case 2: ret = (int16_t) ret; + break; case 4: ret = (int32_t) ret; + break; default: break; } @@ -590,10 +598,13 @@ void helper_st_asi(int asi, int size) switch(size) { case 2: T0 = bswap16(T0); + break; case 4: T0 = bswap32(T0); + break; case 8: T0 = bswap64(T0); + break; default: break; } @@ -806,10 +817,13 @@ void helper_ld_asi(int asi, int size, int sign) switch(size) { case 2: ret = bswap16(ret); + break; case 4: ret = bswap32(ret); + break; case 8: ret = bswap64(ret); + break; default: break; } @@ -822,10 +836,13 @@ void helper_ld_asi(int asi, int size, int sign) switch(size) { case 1: ret = (int8_t) ret; + break; case 2: ret = (int16_t) ret; + break; case 4: ret = (int32_t) ret; + break; default: break; } @@ -851,10 +868,13 @@ void helper_st_asi(int asi, int size) switch(size) { case 2: T0 = bswap16(T0); + break; case 4: T0 = bswap32(T0); + break; case 8: T0 = bswap64(T0); + break; default: break; } -- cgit v1.2.3