From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DCBAEC433E0 for ; Thu, 7 Jan 2021 22:26:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id AFDFE2371F for ; Thu, 7 Jan 2021 22:26:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728450AbhAGWZs (ORCPT ); Thu, 7 Jan 2021 17:25:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46248 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728416AbhAGWZr (ORCPT ); Thu, 7 Jan 2021 17:25:47 -0500 Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 62A2AC0612F5 for ; Thu, 7 Jan 2021 14:25:32 -0800 (PST) Received: by mail-wr1-x430.google.com with SMTP id r7so7118613wrc.5 for ; Thu, 07 Jan 2021 14:25:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=TMeZXBPfIw0UjpZf8Gz8v4KrcSgueeNPugH/0sy+Pio=; b=Luly0zoR582cNphF4JxYJ/wLU37qzjIgDaR9mJ2Q1F4IVZ5DXDsAl76xGz0RhYjKYC v5rFDRvqQn+1E3+dd2HOUHoPMaXSJKrMPL7YXVuvSRxu2PHpZPkV245s9JZKAtvY9JEY 03Vmf5qKPNt/byK6qL9hehSYI/aN8waCEtIFNo+ko8A3y6ZUO01bg1RggubpRvzNTtKq wRWBQMxskzbMErKL4r6/129J9lPtGfDV9ha230uUsnE6LNrBHm7haaxWkGlncI9dQGI8 qSyE64sSahKBqaeF6KbARomyT4/4at0XEATFE4DGIuL0Id03BbZBl74xzfLWCCb/Q1jg k3HQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=TMeZXBPfIw0UjpZf8Gz8v4KrcSgueeNPugH/0sy+Pio=; b=GZs1cp49O4gjYRNB64wYTFRQz5sPEHJhdHksYnQfLz2BmXG9iZUONdHmUAcSF23Nm1 aAcpMFwHaibmvI8mFAc9xpn/+RsfoEBSIpFVEu7tq8kOxc1DPPqyItDZwpUx40ueMfA5 lGeIiXC/LazD3DDLmwuOawZi8dsaLm/JwFPzV4YJWpGbtJctasu9SojlCci7gS83mPGk muJzeo2xHGnybrXO+fDieRjCm72K71rdJnFGCFS9gOaW4aNHi10XDWsHwKEdPSu19Kx4 M/joi1IN8WuAba41F38aWkHKKcIe3KFAJFIZU3FGGk8Is4cwgx6+GbrajA3tqE5+2Hxi oUdA== X-Gm-Message-State: AOAM532/Sj7u+R74gxs/OQC/gH23h4FPfphJQPitTb4xSDnaZz4KdhWN dpQjrzY67h5A/cyyIMwOp+o= X-Google-Smtp-Source: ABdhPJyQheiVWednPyzYmSRVjnmfiD7VWxSYgMeazBYkbky7oQAAQ3mn/UgeIi/xUbmp1CUcnp2SVQ== X-Received: by 2002:adf:fbd2:: with SMTP id d18mr703316wrs.222.1610058331183; Thu, 07 Jan 2021 14:25:31 -0800 (PST) Received: from x1w.redhat.com (241.red-88-10-103.dynamicip.rima-tde.net. [88.10.103.241]) by smtp.gmail.com with ESMTPSA id k18sm12295867wrd.45.2021.01.07.14.25.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Jan 2021 14:25:30 -0800 (PST) Sender: =?UTF-8?Q?Philippe_Mathieu=2DDaud=C3=A9?= From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: libvir-list@redhat.com, Paolo Bonzini , Laurent Vivier , kvm@vger.kernel.org, Jiaxun Yang , Aurelien Jarno , Huacai Chen , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Aleksandar Rikalo , Paul Burton , Richard Henderson Subject: [PULL 30/66] target/mips: Replace gen_exception_err(err=0) by gen_exception_end() Date: Thu, 7 Jan 2021 23:22:17 +0100 Message-Id: <20210107222253.20382-31-f4bug@amsat.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210107222253.20382-1-f4bug@amsat.org> References: <20210107222253.20382-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org generate_exception_err(err=0) is simply generate_exception_end(). Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-Id: <20201214183739.500368-11-f4bug@amsat.org> --- target/mips/translate.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/target/mips/translate.c b/target/mips/translate.c index 5889d24eb65..445858591a4 100644 --- a/target/mips/translate.c +++ b/target/mips/translate.c @@ -2898,7 +2898,7 @@ static inline void gen_move_high32(TCGv ret, TCGv_i64 arg) static inline void check_cp0_enabled(DisasContext *ctx) { if (unlikely(!(ctx->hflags & MIPS_HFLAG_CP0))) { - generate_exception_err(ctx, EXCP_CpU, 0); + generate_exception_end(ctx, EXCP_CpU); } } @@ -3104,10 +3104,10 @@ static inline void check_mt(DisasContext *ctx) static inline void check_cp0_mt(DisasContext *ctx) { if (unlikely(!(ctx->hflags & MIPS_HFLAG_CP0))) { - generate_exception_err(ctx, EXCP_CpU, 0); + generate_exception_end(ctx, EXCP_CpU); } else { if (unlikely(!(ctx->CP0_Config3 & (1 << CP0C3_MT)))) { - generate_exception_err(ctx, EXCP_RI, 0); + generate_exception_end(ctx, EXCP_RI); } } } -- 2.26.2 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 45345C433DB for ; Thu, 7 Jan 2021 22:46:22 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E816C235FA for ; Thu, 7 Jan 2021 22:46:21 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E816C235FA Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=amsat.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:36676 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kxe2v-0006G6-09 for qemu-devel@archiver.kernel.org; Thu, 07 Jan 2021 17:46:21 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:46944) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kxdio-0000wn-RU for qemu-devel@nongnu.org; Thu, 07 Jan 2021 17:25:35 -0500 Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]:42448) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kxdim-0005Xa-PD for qemu-devel@nongnu.org; Thu, 07 Jan 2021 17:25:34 -0500 Received: by mail-wr1-x429.google.com with SMTP id m5so7110078wrx.9 for ; Thu, 07 Jan 2021 14:25:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=TMeZXBPfIw0UjpZf8Gz8v4KrcSgueeNPugH/0sy+Pio=; b=Luly0zoR582cNphF4JxYJ/wLU37qzjIgDaR9mJ2Q1F4IVZ5DXDsAl76xGz0RhYjKYC v5rFDRvqQn+1E3+dd2HOUHoPMaXSJKrMPL7YXVuvSRxu2PHpZPkV245s9JZKAtvY9JEY 03Vmf5qKPNt/byK6qL9hehSYI/aN8waCEtIFNo+ko8A3y6ZUO01bg1RggubpRvzNTtKq wRWBQMxskzbMErKL4r6/129J9lPtGfDV9ha230uUsnE6LNrBHm7haaxWkGlncI9dQGI8 qSyE64sSahKBqaeF6KbARomyT4/4at0XEATFE4DGIuL0Id03BbZBl74xzfLWCCb/Q1jg k3HQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=TMeZXBPfIw0UjpZf8Gz8v4KrcSgueeNPugH/0sy+Pio=; b=ivxzFJGO/ZrxcPHwxo2EoV7NLv9g1pHoi/I6jYb6ui2AP4k1GuHDrIGEbapEfypf3I FC3zXaR1A0WfkJm29ITSiZBp3INP6JUTLdFnOXvYuUUgTqUjsBIdHSre1nXBce//koVT 6E5l3mB9Kh5SgvXLzXIcGIzsDCngsOBgXhIDIi4Ns+47RcB/huER7kLm04w0FnIOIzLF lvbdRk2ojYKghXEvTCJHq+Q6BootxQClJ3hYnHOGMuXprikh9FIwfFigLsUly03AhEQR 0YL1E1xd/ySFyyk0Nly1Dju3dACD3JmMp+/wIHoQ8ntTO/z44gMe9M4wm5SuA8j7vHpJ 4bIg== X-Gm-Message-State: AOAM532p2YZD19CXStrQFg7ba5684bYsmQ3ZY6WfEcHCHVhkbPkWlGg2 La3D2f5+gD2qI+s9mOcM0fpT9IxqFWI= X-Google-Smtp-Source: ABdhPJyQheiVWednPyzYmSRVjnmfiD7VWxSYgMeazBYkbky7oQAAQ3mn/UgeIi/xUbmp1CUcnp2SVQ== X-Received: by 2002:adf:fbd2:: with SMTP id d18mr703316wrs.222.1610058331183; Thu, 07 Jan 2021 14:25:31 -0800 (PST) Received: from x1w.redhat.com (241.red-88-10-103.dynamicip.rima-tde.net. [88.10.103.241]) by smtp.gmail.com with ESMTPSA id k18sm12295867wrd.45.2021.01.07.14.25.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Jan 2021 14:25:30 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 30/66] target/mips: Replace gen_exception_err(err=0) by gen_exception_end() Date: Thu, 7 Jan 2021 23:22:17 +0100 Message-Id: <20210107222253.20382-31-f4bug@amsat.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210107222253.20382-1-f4bug@amsat.org> References: <20210107222253.20382-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::429; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-wr1-x429.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.248, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.248, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Aleksandar Rikalo , Paul Burton , kvm@vger.kernel.org, libvir-list@redhat.com, Huacai Chen , Richard Henderson , Laurent Vivier , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Paolo Bonzini , Aurelien Jarno Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" generate_exception_err(err=0) is simply generate_exception_end(). Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-Id: <20201214183739.500368-11-f4bug@amsat.org> --- target/mips/translate.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/target/mips/translate.c b/target/mips/translate.c index 5889d24eb65..445858591a4 100644 --- a/target/mips/translate.c +++ b/target/mips/translate.c @@ -2898,7 +2898,7 @@ static inline void gen_move_high32(TCGv ret, TCGv_i64 arg) static inline void check_cp0_enabled(DisasContext *ctx) { if (unlikely(!(ctx->hflags & MIPS_HFLAG_CP0))) { - generate_exception_err(ctx, EXCP_CpU, 0); + generate_exception_end(ctx, EXCP_CpU); } } @@ -3104,10 +3104,10 @@ static inline void check_mt(DisasContext *ctx) static inline void check_cp0_mt(DisasContext *ctx) { if (unlikely(!(ctx->hflags & MIPS_HFLAG_CP0))) { - generate_exception_err(ctx, EXCP_CpU, 0); + generate_exception_end(ctx, EXCP_CpU); } else { if (unlikely(!(ctx->CP0_Config3 & (1 << CP0C3_MT)))) { - generate_exception_err(ctx, EXCP_RI, 0); + generate_exception_end(ctx, EXCP_RI); } } } -- 2.26.2