From patchwork Thu Sep 16 15:30:18 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 512965 Delivered-To: patch@linaro.org Received: by 2002:a02:c816:0:0:0:0:0 with SMTP id p22csp1340726jao; Thu, 16 Sep 2021 08:53:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyCgB1jezc/VDxAeo2MRB0p2vbztTl9STthtrZSbnUPFXang7PRlHbERtw+af+UWiH+MV1T X-Received: by 2002:ac8:570f:: with SMTP id 15mr5794584qtw.335.1631807590351; Thu, 16 Sep 2021 08:53:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631807590; cv=none; d=google.com; s=arc-20160816; b=p5+o0rMpYR7sRptvGVGaKJcic7p7HEw/egXosEytHP6INu4rp+XoGp/tz4XGLjynup bn+8Ezmi3NXmcuE5dMFhWLTpaoP9c7RRrNdyKMLErnkU6DjmJuy/yGxQY6D8Vl0NN+5s iazp5PNWK3a/CjxCSS/bpLvARUygq2WFteHgwFNqdJLdQq3KEoDuCDjy3qZnO2Coiqtp /0KcFutNd3t+v0c2zVlYHMLjKyCVen5J4zt7JFjWPcNqWkfwuVZLwHak9IsKpTouGIE1 edWflaF4FGR/3Az2+AyR+gO3q2ZdApH4DyO/7UprqdpIUNh92FKz4+BSC9viYKNhKzVK 9B7g== 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=J6Fp0tDii68JisdtRr/m4W+R/ln8amHARXVC+ekHe9o=; b=NakHkXD15Bd5phh1Cwecw7tU3TOTcegfZdyI1TxjvB3SOHGhtNeXibmV1wImMZ0OG5 jlOdpBFAViyyTmVLsY5jZLvQvNMF7lU2VQASpQHG2H8nBHF4vELtDy6wD3jiT8NQkHQ4 MgQaWeWbX0aC9s8Jc0gVe4KSncfWiHnaxWSqhzUBkm06jRJ+ksvYbIEwH/VOB12iSBr0 h5gPD71tHmAk9iVYzWO6ywN5DKwOl6xKd8taI+TSJIWQXPYVA6HUULFOQ5BKUgCJwMzC N9FAY3AxG2yiAvoO1ho13cZZayju8hH6FJJdqGWKLfyvV9g3gqI152yzeywr0pLV6P+6 IKHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WTvC0Zu1; 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 ay40si1860879qkb.334.2021.09.16.08.53.10 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 16 Sep 2021 08:53:10 -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=WTvC0Zu1; 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]:34258 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mQthE-0006x1-QR for patch@linaro.org; Thu, 16 Sep 2021 11:53:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41270) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mQtLm-0001hr-9l for qemu-devel@nongnu.org; Thu, 16 Sep 2021 11:30:58 -0400 Received: from mail-pj1-x1029.google.com ([2607:f8b0:4864:20::1029]:47033) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mQtLd-0002cE-1B for qemu-devel@nongnu.org; Thu, 16 Sep 2021 11:30:57 -0400 Received: by mail-pj1-x1029.google.com with SMTP id lb1-20020a17090b4a4100b001993f863df2so5013293pjb.5 for ; Thu, 16 Sep 2021 08:30:46 -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=J6Fp0tDii68JisdtRr/m4W+R/ln8amHARXVC+ekHe9o=; b=WTvC0Zu1HO26hOb/3VCLaOCMMhA1eibvJCwWN1PFp2f7DXcod18wNsNdRagrebcH2V j3+FmgYv69PJ5H1iJKYBQ+jAlTtRC10ZfxZLCd81zPyNysCoIHLWPwnxCBhxW9z9aTVV Ls1cCFJx88ZG7EVu/ON/sF0r47ZpSYJt2TJozbxBliQYqiFLs5w0NOCkoLDy2ubYPIJj j+5JMMtZ990cw8Ql88PfWySp0A/sIM5mVobPRU2txVm+yVY1i0ivzdx5awxPBhWav/jT 3ZfLqpxhWnfsfBYLAOg4/x12Vscw/suxhHEcl/U8svSqcG2uDrQZQrHO80/VlpaKzJlh 21YA== 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=J6Fp0tDii68JisdtRr/m4W+R/ln8amHARXVC+ekHe9o=; b=bhT5IbBof7lG9NEReM9wgWDabqCia7Vrva94e49OYcp4sLCQT9CkTTfMa9s/zL+aud /GZjJKZzKsVxTm+rss4z058kTFPBwVvzvi8dlOnieXKa5bybwHLza8fuGWMUn/wx6yZt LqLr3Feluzf2zIgiXhiU+mTCpoDaCX5K5r7CvZlbuR8dwPefk/SE1IGB0eJBQ2O2iIFB T3WYF7qECnsjsGOS/T/TEuhiEPE79xg+3DYDoOb2YDRhF95FXPwQq4Z3421llw4gLYpw stFvGl0/V9OyjPm4a4rMuXJ4UzrO05rra7bsxsZukjIk/ZkBPTIxHTSkvZTxiiB33beE o3Rw== X-Gm-Message-State: AOAM5336NTuvx5g2GKl9+gsEnQT3cDm7Be2mmGRiTR9SNmzVwqv5Nj9h LEZqpk6d1SjT9QDR8n9TNl+HoVoJ3FzOlQ== X-Received: by 2002:a17:902:9a91:b0:138:efd5:7302 with SMTP id w17-20020a1709029a9100b00138efd57302mr5226284plp.35.1631806245799; Thu, 16 Sep 2021 08:30:45 -0700 (PDT) Received: from localhost.localdomain ([71.212.134.125]) by smtp.gmail.com with ESMTPSA id b7sm3779447pgs.64.2021.09.16.08.30.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Sep 2021 08:30:45 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PULL 28/35] target/sparc: Restrict has_work() handler to sysemu Date: Thu, 16 Sep 2021 08:30:18 -0700 Message-Id: <20210916153025.1944763-29-richard.henderson@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210916153025.1944763-1-richard.henderson@linaro.org> References: <20210916153025.1944763-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::1029; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1029.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?= Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Philippe Mathieu-Daudé Restrict has_work() to sysemu. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-Id: <20210912172731.789788-28-f4bug@amsat.org> Signed-off-by: Richard Henderson --- target/sparc/cpu.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) -- 2.25.1 diff --git a/target/sparc/cpu.c b/target/sparc/cpu.c index e83e305aa9..4a63ed1264 100644 --- a/target/sparc/cpu.c +++ b/target/sparc/cpu.c @@ -702,6 +702,7 @@ static void sparc_cpu_synchronize_from_tb(CPUState *cs, cpu->env.npc = tb->cs_base; } +#if !defined(CONFIG_USER_ONLY) static bool sparc_cpu_has_work(CPUState *cs) { SPARCCPU *cpu = SPARC_CPU(cs); @@ -710,6 +711,7 @@ static bool sparc_cpu_has_work(CPUState *cs) return (cs->interrupt_request & CPU_INTERRUPT_HARD) && cpu_interrupts_enabled(env); } +#endif /* !CONFIG_USER_ONLY */ static char *sparc_cpu_type_name(const char *cpu_model) { @@ -867,6 +869,7 @@ static const struct TCGCPUOps sparc_tcg_ops = { .tlb_fill = sparc_cpu_tlb_fill, #ifndef CONFIG_USER_ONLY + .has_work = sparc_cpu_has_work, .cpu_exec_interrupt = sparc_cpu_exec_interrupt, .do_interrupt = sparc_cpu_do_interrupt, .do_transaction_failed = sparc_cpu_do_transaction_failed, @@ -888,7 +891,6 @@ static void sparc_cpu_class_init(ObjectClass *oc, void *data) cc->class_by_name = sparc_cpu_class_by_name; cc->parse_features = sparc_cpu_parse_features; - cc->has_work = sparc_cpu_has_work; cc->dump_state = sparc_cpu_dump_state; #if !defined(TARGET_SPARC64) && !defined(CONFIG_USER_ONLY) cc->memory_rw_debug = sparc_cpu_memory_rw_debug;