From patchwork Tue Sep 14 00:14:22 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 510438 Delivered-To: patch@linaro.org Received: by 2002:a02:c816:0:0:0:0:0 with SMTP id p22csp1052452jao; Mon, 13 Sep 2021 17:37:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwCwG3b/VbCPgrN+zjg6gY0lq92M+bq6oFBs72+eOjwGsOWnmGEjLyhqlklrsEc3Zm44P1I X-Received: by 2002:ac8:5941:: with SMTP id 1mr2195424qtz.1.1631579822055; Mon, 13 Sep 2021 17:37:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631579822; cv=none; d=google.com; s=arc-20160816; b=HdykLWMUHHwC0AePtlO8PsS5YmINnfekw1SGkEeRrO7Q/TYnXVNluXWqz0h3dl1oQb vwHndryic11yu8EMvxizc+bb6unAUQ5O6Ms+Ja+OKUX2qm0YhdY35RvmsUDD/ubzCpq5 aWi9rToLfSGdd5y+VJrazTKLJy4rAXU+l1C5LIp90w4cSVX+f0Yxs+ckX6RcqoeJgocB u3jKTNPrGNACCQYLIvwWMQRHQeuWayquPh+4CEQ1Pd5akmkFK52WMxSjmMvh5enDqYQi alLrLvXeB0ct1bH89Z5MHEd6amYounPY67l38k7Wkdp5xStQjl2/rASu+YEPgkV7U1ZH bvFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=qzdUbBvonI52eRjNBpOJVN+UXc3ukVmZEPGl23UhGwE=; b=k7ONufPuQQsFRoXnPcJ0sXTmaj5ItJL+dIkW4pKZJU76yyKrBKVleh7c92vMYlheEH OkXwWJmvhYlpeTsNUvAC/MslWe29gTmiS8KNxOea7iUv1N8DHVGfL661JIaHxwSB0G8A MFLMIUj1+BgtKg2Q/mqjz4ZW/AdjcTCQRKmynIFh2Vz11jnsbHhF6Y82KeNT+E0ffg9t o0MHwfEFVmx2uSKOuOEUqlsMc6fm8oKewnhn6m+fFi7nJblGgqynPNm+vkXgFzpao5a3 wesMgfL2dnn/KXS7M8RuJpB0AkhbI2DD3cnUe3RlJ7JX08Yi7n8SvzRlAhUYj9JfxJU3 Wa8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HjgdIBwh; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id u28si5564937qtc.425.2021.09.13.17.37.01 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 13 Sep 2021 17:37:02 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HjgdIBwh; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:37710 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mPwRZ-00008g-GY for patch@linaro.org; Mon, 13 Sep 2021 20:37:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53484) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mPw6O-0001hZ-P1 for qemu-devel@nongnu.org; Mon, 13 Sep 2021 20:15:08 -0400 Received: from mail-pl1-x630.google.com ([2607:f8b0:4864:20::630]:38698) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mPw6N-0007eQ-4S for qemu-devel@nongnu.org; Mon, 13 Sep 2021 20:15:08 -0400 Received: by mail-pl1-x630.google.com with SMTP id 5so6976694plo.5 for ; Mon, 13 Sep 2021 17:15:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=qzdUbBvonI52eRjNBpOJVN+UXc3ukVmZEPGl23UhGwE=; b=HjgdIBwh9ygRgr+8uBSN2AUiUlcAfg1MJ8QzKEyARecJmKrXxIj2xp6FcfwN29zH7x wwbzRBVr2ZCKEY25vLnGoSgeUCXD3+razErErN+2Biiq879JIF8+rbIEhMb8qnMTJ/mm CcR17NJ/JZPi29SjUSt5VLwk65oA5Mxcm6gYa8VWSf9n+AB3w1n86ylTo5YdsSBMownJ id0330B7QV0ucoQUf8LEaQo++86LiCRvwfwuwVpGxl5flKxoklhHW2etpVahRiPToL/r SB71j5wIxS1SANMjrIbZBJwxVYlMx/wZrPSgUemHVql7jXFa2Xg02h13+bX8V3OQiJFn RHJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=qzdUbBvonI52eRjNBpOJVN+UXc3ukVmZEPGl23UhGwE=; b=QFTifSosoDYGSkVdkb7zhi/MocBVXAO5BinBycJ5CuMEP4s7cNpkPfskg1dAjXAvGX X921cCy+cjldnShPDkjoYB2+Vpl3h58AZHE/UPhXv7lFDFYBfZb2JK48Yk0EnCkGeUlK Ihcj9L8oolE3rdC9zbFDVH1wa3nAl5s/TZhfs/wzz0cnEdKz325V3W7axI2BJ+qTrkuH sUecQ1vAzAbR7JSp4yA8ckS/xUp1oAUJc7D/KafZmr9FpgMPIuTfLk1vj3WODBTizmmQ vDepVqDGcgq1TH/gClC7XyBONiX+myPKqEaN/4P/elJz4BlskEMu6w/thXqsbLs/okQV Wg6Q== X-Gm-Message-State: AOAM5331FRntlnilogINum1YwjHW9P9MWEcq0yuX7dszo4uk5lR9oOGb AIGyOVDUtKNEONME5inhtra0NzebKwT77A== X-Received: by 2002:a17:902:e846:b0:13a:479:33e5 with SMTP id t6-20020a170902e84600b0013a047933e5mr12650132plg.25.1631578505790; Mon, 13 Sep 2021 17:15:05 -0700 (PDT) Received: from localhost.localdomain ([71.212.134.125]) by smtp.gmail.com with ESMTPSA id m7sm9334179pgn.32.2021.09.13.17.15.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Sep 2021 17:15:05 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PULL 10/44] target/i386: Restrict sysemu-only fpu_helper helpers Date: Mon, 13 Sep 2021 17:14:22 -0700 Message-Id: <20210914001456.793490-11-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210914001456.793490-1-richard.henderson@linaro.org> References: <20210914001456.793490-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::630; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x630.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham 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: peter.maydell@linaro.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Warner Losh Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Philippe Mathieu-Daudé Restrict some sysemu-only fpu_helper helpers (see commit 83a3d9c7402: "i386: separate fpu_helper sysemu-only parts"). Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Warner Losh Reviewed-by: Richard Henderson Message-Id: <20210911165434.531552-3-f4bug@amsat.org> Signed-off-by: Richard Henderson --- target/i386/cpu.h | 3 +++ 1 file changed, 3 insertions(+) -- 2.25.1 diff --git a/target/i386/cpu.h b/target/i386/cpu.h index 71ae3141c3..1a36c53c18 100644 --- a/target/i386/cpu.h +++ b/target/i386/cpu.h @@ -1837,11 +1837,14 @@ void x86_cpu_list(void); int cpu_x86_support_mca_broadcast(CPUX86State *env); int cpu_get_pic_interrupt(CPUX86State *s); + +#ifndef CONFIG_USER_ONLY /* MSDOS compatibility mode FPU exception support */ void x86_register_ferr_irq(qemu_irq irq); void fpu_check_raise_ferr_irq(CPUX86State *s); void cpu_set_ignne(void); void cpu_clear_ignne(void); +#endif /* mpx_helper.c */ void cpu_sync_bndcs_hflags(CPUX86State *env);