From patchwork Thu Sep 16 15:30:16 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 512970 Delivered-To: patch@linaro.org Received: by 2002:a02:c816:0:0:0:0:0 with SMTP id p22csp1345569jao; Thu, 16 Sep 2021 08:59:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJysst3LV/xzwfeWkDAuL+3kYLR/eE+FriqnfjE3UzJaqgIODIQONJf1OZ7U7g+PClK/+Rvp X-Received: by 2002:ac8:7959:: with SMTP id r25mr51382qtt.29.1631807971486; Thu, 16 Sep 2021 08:59:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631807971; cv=none; d=google.com; s=arc-20160816; b=hv8Jnjl+e4saQyK0K3U7nPCIEDUupd0IsaQ3Zjm1vElp9uIl7Usy4nT11jFcVWU/++ BncteUVRjC/43yXmnRusbDI3aAkw5CyqbwYhrR3KM9R6O3uisXgsp1ip0zIAA6cVSt/K RztYX0E49cpvfNT+rIMKP7PiRFXmFl6X1Q5et+e0jrRE87hxZwj6wC3FvMBDpkiG78jk iMNa0qUNs7e0gEwJd6D8hG1Oor1LJ973Httsx403gqUWsYv5jTH3E1bYhcB6uR7MWSlO O7HXOTnkzMcx3g7apV+gaHUG8Hrubr3aoETLfe5mg+tNFMCuCAGfEiM2jhOFmWy221EB lERg== 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=RwS32umeuTKtPdFMznfukznJpzAEayn9YEvDSjPds5w=; b=GiHnM6xH0GdMBeUPCIiKF7MIQDkSEIrfnDMNmYtbjAMrs7amdbuShw7jEYJclBsR8e lFeqBOocS+iANcszox396YvNZMr4DLvk2i01MeufSM8udh92Ta38m1G7hDo7+H269/Bu dbcZQt+gSFvFq8qTJ/Wx1eY2Ucd5jBKA+4sdezZG0Cb5DZheu1geB+qZTDkgK17vK3Vr BFKct7nmGJErnB0kMzp0p197yse0IUinMmIbEQMGTls7IO4R00+bSQxoZzaGZjVadqpg 13EparuTBOy1jaLCtJub8aGtbELnoxoO39VxAJiequzXBZjhYTYrvlsuEf8loVEsAqec qdEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="ttN/Vs2F"; 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 d1si1910878qtm.334.2021.09.16.08.59.31 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 16 Sep 2021 08:59:31 -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="ttN/Vs2F"; 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]:52432 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mQtnP-0002TY-0C for patch@linaro.org; Thu, 16 Sep 2021 11:59:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41218) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mQtLk-0001bZ-Ff for qemu-devel@nongnu.org; Thu, 16 Sep 2021 11:30:56 -0400 Received: from mail-pj1-x1035.google.com ([2607:f8b0:4864:20::1035]:54064) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mQtLb-0002b5-1l for qemu-devel@nongnu.org; Thu, 16 Sep 2021 11:30:56 -0400 Received: by mail-pj1-x1035.google.com with SMTP id j1so4804315pjv.3 for ; Thu, 16 Sep 2021 08:30:45 -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=RwS32umeuTKtPdFMznfukznJpzAEayn9YEvDSjPds5w=; b=ttN/Vs2FPJnOu1F6W/xNZnzNo0PSBw5JWVzpEGcvXqe4sKOWGgwArcH4W2hUa0LIVo DoyY5KTc9mf3L/Cx0r3SWKCJ4EDPjvc8ywzJJgmN5Z4E/jSeVeKSiNfZgESQaTPyoG87 SqlTzCrYCr2Ir6LyfJkH6edUON76xBU0fDyhSuwrVz8l6znywEGweSsdUZR/5F42s52q mNPoznlHJmmTmEuZsV519eE6S7zdKCIcElWrsAAQ/Xht7rrV4LaQkizzCUwhoDLPOOku GlUls5kuDX0/3huiUVj2CAU61kcAAgvpFBjp3kKJBWCr6OmtU4DuCDE7DmP461CAZsbK xzLw== 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=RwS32umeuTKtPdFMznfukznJpzAEayn9YEvDSjPds5w=; b=IACRJMLm3U0i/i65KfAMjjCYSsu1vCT6gvhjWcLZgA0Wj5/SOIrwmbjSR3fSmNMJzC Z/HOAjmkWeTTBeDJ/9DTKwvc1RXg2ZO7EoZZbMvjLpFTUGCBL/OxYDzsivEwAywHMhzf yivInozO0qwcqafZ3mgqgim0MwZH1lEW+sPGgnK5cxLXHkTbEyRBgPdTU+j5B3TRbQW8 WGvjj8k4vE1y30wwVVDZeZ34S0BNaf0QHp46vEXkrh97Ih3+XFWOErdxXkRnZgCE/5Rn hHJbZcje/cIaVv87PQD+wrYXEpw4N8J4o/GswnaeXvvVyqiYmqB+xQUSz+V4bWyqPNv3 XWFA== X-Gm-Message-State: AOAM533/q7B3qclT7Y46LzQXpCam67NrpzkUr2t41fQ55RUyalJWcRKE 5halVY3Mud6GTdigzN8T64OmKnqLxxMoyg== X-Received: by 2002:a17:902:7e05:b0:13b:7282:957f with SMTP id b5-20020a1709027e0500b0013b7282957fmr5341637plm.50.1631806244328; Thu, 16 Sep 2021 08:30:44 -0700 (PDT) Received: from localhost.localdomain ([71.212.134.125]) by smtp.gmail.com with ESMTPSA id b7sm3779447pgs.64.2021.09.16.08.30.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Sep 2021 08:30:44 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PULL 26/35] target/sh4: Restrict has_work() handler to sysemu Date: Thu, 16 Sep 2021 08:30:16 -0700 Message-Id: <20210916153025.1944763-27-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::1035; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1035.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-26-f4bug@amsat.org> Signed-off-by: Richard Henderson --- target/sh4/cpu.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) -- 2.25.1 diff --git a/target/sh4/cpu.c b/target/sh4/cpu.c index 2047742d03..fb2116dc52 100644 --- a/target/sh4/cpu.c +++ b/target/sh4/cpu.c @@ -58,13 +58,14 @@ static bool superh_io_recompile_replay_branch(CPUState *cs, } return false; } -#endif static bool superh_cpu_has_work(CPUState *cs) { return cs->interrupt_request & CPU_INTERRUPT_HARD; } +#endif /* !CONFIG_USER_ONLY */ + static void superh_cpu_reset(DeviceState *dev) { CPUState *s = CPU(dev); @@ -239,6 +240,7 @@ static const struct TCGCPUOps superh_tcg_ops = { .tlb_fill = superh_cpu_tlb_fill, #ifndef CONFIG_USER_ONLY + .has_work = superh_cpu_has_work, .cpu_exec_interrupt = superh_cpu_exec_interrupt, .do_interrupt = superh_cpu_do_interrupt, .do_unaligned_access = superh_cpu_do_unaligned_access, @@ -258,7 +260,6 @@ static void superh_cpu_class_init(ObjectClass *oc, void *data) device_class_set_parent_reset(dc, superh_cpu_reset, &scc->parent_reset); cc->class_by_name = superh_cpu_class_by_name; - cc->has_work = superh_cpu_has_work; cc->dump_state = superh_cpu_dump_state; cc->set_pc = superh_cpu_set_pc; cc->gdb_read_register = superh_cpu_gdb_read_register;