From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58108) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XzMYL-0003bK-7R for qemu-devel@nongnu.org; Fri, 12 Dec 2014 04:30:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XzMYG-0005Vy-10 for qemu-devel@nongnu.org; Fri, 12 Dec 2014 04:30:25 -0500 Received: from mailapp01.imgtec.com ([195.59.15.196]:51232) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XzMYF-0005Vo-RK for qemu-devel@nongnu.org; Fri, 12 Dec 2014 04:30:19 -0500 From: Leon Alrae Date: Fri, 12 Dec 2014 09:30:00 +0000 Message-ID: <1418376603-18360-2-git-send-email-leon.alrae@imgtec.com> In-Reply-To: <1418376603-18360-1-git-send-email-leon.alrae@imgtec.com> References: <1418376603-18360-1-git-send-email-leon.alrae@imgtec.com> MIME-Version: 1.0 Content-Type: text/plain Subject: [Qemu-devel] [PATCH 1/4] target-mips: convert single case switch into if statement List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: aurelien@aurel32.net Signed-off-by: Leon Alrae --- target-mips/translate.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/target-mips/translate.c b/target-mips/translate.c index f65ed84..1205909 100644 --- a/target-mips/translate.c +++ b/target-mips/translate.c @@ -1882,10 +1882,8 @@ static inline void gen_r6_cmp_ ## fmt(DisasContext * ctx, int n, \ { \ TCGv_i ## bits fp0 = tcg_temp_new_i ## bits(); \ TCGv_i ## bits fp1 = tcg_temp_new_i ## bits(); \ - switch (ifmt) { \ - case FMT_D: \ + if (ifmt == FMT_D) { \ check_cp1_registers(ctx, fs | ft | fd); \ - break; \ } \ gen_ldcmp_fpr ## bits(ctx, fp0, fs); \ gen_ldcmp_fpr ## bits(ctx, fp1, ft); \ -- 2.1.0