From patchwork Thu Sep 16 15:30:07 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 512947 Delivered-To: patch@linaro.org Received: by 2002:a02:c816:0:0:0:0:0 with SMTP id p22csp1328994jao; Thu, 16 Sep 2021 08:38:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzFkNI7P+MO0y1svPozzU51okSAdqmf+Hu/n1tuyqX9t5Y1/E8cOtj+kKf/HSEMhhNcK0+1 X-Received: by 2002:a05:6102:34b:: with SMTP id e11mr4568465vsa.22.1631806726782; Thu, 16 Sep 2021 08:38:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631806726; cv=none; d=google.com; s=arc-20160816; b=nwdMCXo014uApY8TuoJGNVEmrdUCjr4LK4dj0TMMFhgwjrLXYR5bN3GuClhxYMmUWJ CJaoJmTw6i9Hp7IAPJhvtu9wyRU/lemG4lobQbRD+ZXiLilXzBAsJMFwhDz2byreEmPF prGihX1a1Q7msx1y0lkAzTNW6baPTDQ/51pvZcM0+bbg0lH88Rp4ykDeR0xZFjgyA4OM R0zkDoMFnj6kOsUHdUGjYB/cyD2qmFPlRWxUL3UHiVDpwgsQPBK2XUOyBOOoI+8Wxxyw 2/RNNL8oRTUhZ1y243LuGTsJLN3KPw0vJbGAu4uUFB+YsQlRQvqsS0IZ7LEU+zlEPV7p QP8Q== 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=B7rWuZpn/SMFqm/jKpkO+UpJH/x3OABwCOd9KRMVg2I=; b=k6gofVgSzXoNxWLZAbWpjB3zHUa7QjXmp3uF0xkuMfc+y/4yiAbx4Rj3GbIiryo/s2 rUB1mmmQTdAyPjNGn2RcCcVY9Zrr5SpeiUD+zEc0X54voFOLNSTX/euqShjxEBX2fRzh 2mIfT1SnszJqrpGsFEm4yLEd6adoBliONprRw3GBe5jsa43WLGPVE5lBBOiTJebvypsm 2qccVNPLJVCmp5dMwKDGbCxs/xjwCAKM9+Cy61VHv0/PIvGFb6rWtI8H9tkBCqflTL9U D6J1rdTZ6uRsSDWY6d2hbOJ+t0NbVB7BvSTOukgazANfSuE3JUgp+LQdZ01C4b0JdQzY khkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SJc92Y7D; 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 65si1416774vks.74.2021.09.16.08.38.46 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 16 Sep 2021 08:38:46 -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=SJc92Y7D; 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]:52118 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mQtTK-0005NP-7O for patch@linaro.org; Thu, 16 Sep 2021 11:38:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41204) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mQtLk-0001Zy-58 for qemu-devel@nongnu.org; Thu, 16 Sep 2021 11:30:56 -0400 Received: from mail-pf1-x431.google.com ([2607:f8b0:4864:20::431]:43856) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mQtLT-0002WG-Hv for qemu-devel@nongnu.org; Thu, 16 Sep 2021 11:30:53 -0400 Received: by mail-pf1-x431.google.com with SMTP id c1so3324124pfp.10 for ; Thu, 16 Sep 2021 08:30:38 -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=B7rWuZpn/SMFqm/jKpkO+UpJH/x3OABwCOd9KRMVg2I=; b=SJc92Y7DkgPZuwceESqn/Lpd5GNepRRd+GOIpkXai9Pjf/tF1wml/B+x/ejN1dxUOg hg9lEhddLF/RYyVj7wUy8jz6s5FaTHbWZFmwmBsOlt0yku/5uD/RX0Vm0YzjYU3+iC/V 23U+xdppmItvm/PIzh9zF8If6HCyV7m37eYtR2IMmFRn+Xi6np5pN2Rid9XGifnoTvsV 3DkrjipYHEWwtedEtNtIjTDCB+s+zzvdefg28hxNBX4Cg/PxaYyHDLcKQvKP7KF4GB0E dM4jKTXDUZzAzNc12ZW2zH/sWLP4nzJjZKIcYbx7JdrycJXF7ImbJfZi21t4fF7Psq/C 5iKw== 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=B7rWuZpn/SMFqm/jKpkO+UpJH/x3OABwCOd9KRMVg2I=; b=ovUtzlox4+Ot4CoZqwuqD0qDETBYWOiKKzJN2Dnbrt0G/KWhteyNokNkwptwtmcIpw GnA90cvhjCCnWcu2K3BoQbTd/wqVdruyh1WPcl4DBF4QtJxbCm6T4VZRZpWnOyInYQhl T6+8/WA/hEumTht4raMRnLB9Z4Hh/xf5oh7QrNnxzBWP8NvvVshW4PJym87N9U92dwJy CW4Ch6xnVTIPgWbiYOv+gO9lbCYZsB2/bMTIKAhiIpQQeXEYfDsJOGIbGSxz7KSYm0Rd kbcWJAcBrlo9z0j+GeOaC5DAOXgvJniTp696KCZePDwsiWdJPCUYvysfl3EWNJ2Wlqet ZwqQ== X-Gm-Message-State: AOAM531rsZcmQ7cM9gOSNcxKXxyoDN3QwZucFov35jHvF3m3wnzV5ql5 K+jxoRxIk+Ii68JnYvFnMmjOZXWVUl+sHw== X-Received: by 2002:a63:c045:: with SMTP id z5mr5459758pgi.374.1631806237987; Thu, 16 Sep 2021 08:30:37 -0700 (PDT) Received: from localhost.localdomain ([71.212.134.125]) by smtp.gmail.com with ESMTPSA id b7sm3779447pgs.64.2021.09.16.08.30.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Sep 2021 08:30:37 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PULL 17/35] target/microblaze: Restrict has_work() handler to sysemu Date: Thu, 16 Sep 2021 08:30:07 -0700 Message-Id: <20210916153025.1944763-18-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::431; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x431.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=unavailable 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-17-f4bug@amsat.org> Signed-off-by: Richard Henderson --- target/microblaze/cpu.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) -- 2.25.1 diff --git a/target/microblaze/cpu.c b/target/microblaze/cpu.c index 15db277925..36e6e54048 100644 --- a/target/microblaze/cpu.c +++ b/target/microblaze/cpu.c @@ -92,12 +92,13 @@ static void mb_cpu_synchronize_from_tb(CPUState *cs, cpu->env.iflags = tb->flags & IFLAGS_TB_MASK; } +#ifndef CONFIG_USER_ONLY + static bool mb_cpu_has_work(CPUState *cs) { return cs->interrupt_request & (CPU_INTERRUPT_HARD | CPU_INTERRUPT_NMI); } -#ifndef CONFIG_USER_ONLY static void mb_cpu_ns_axi_dp(void *opaque, int irq, int level) { MicroBlazeCPU *cpu = opaque; @@ -142,7 +143,7 @@ static void microblaze_cpu_set_irq(void *opaque, int irq, int level) cpu_reset_interrupt(cs, type); } } -#endif +#endif /* !CONFIG_USER_ONLY */ static void mb_cpu_reset(DeviceState *dev) { @@ -368,6 +369,7 @@ static const struct TCGCPUOps mb_tcg_ops = { .tlb_fill = mb_cpu_tlb_fill, #ifndef CONFIG_USER_ONLY + .has_work = mb_cpu_has_work, .cpu_exec_interrupt = mb_cpu_exec_interrupt, .do_interrupt = mb_cpu_do_interrupt, .do_transaction_failed = mb_cpu_transaction_failed, @@ -386,8 +388,6 @@ static void mb_cpu_class_init(ObjectClass *oc, void *data) device_class_set_parent_reset(dc, mb_cpu_reset, &mcc->parent_reset); cc->class_by_name = mb_cpu_class_by_name; - cc->has_work = mb_cpu_has_work; - cc->dump_state = mb_cpu_dump_state; cc->set_pc = mb_cpu_set_pc; cc->gdb_read_register = mb_cpu_gdb_read_register;