From patchwork Thu Sep 16 15:30:06 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 512966 Delivered-To: patch@linaro.org Received: by 2002:a02:c816:0:0:0:0:0 with SMTP id p22csp1341228jao; Thu, 16 Sep 2021 08:53:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyXpDKBcNoe/omXTZCZbdMPB2TQzs0Qe6hmZ/pndbGEgwmXJIPe0G3Z39k6kGdQtiSpj5Io X-Received: by 2002:ac8:568f:: with SMTP id h15mr252735qta.318.1631807628427; Thu, 16 Sep 2021 08:53:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631807628; cv=none; d=google.com; s=arc-20160816; b=a94pUYGrIt4YEIHtSS1zx/ptuW/gAr4M4yo5D9hY8I9TNkVzkQscqyWrg6AuVPs7cZ RQbPO/dai3kYfCu+obqqGYIc8TBdUC+4Ca6mQAjlquzWNhFQ5fdDj5tjMqsDFiluD8Sj u+B1JlC3jDYkxZdI/M7noXCBOJkkUWtf6xc68x4dBwCQtU1DRVWqjKRaNJ7hLGZjFA7w wO1BYpBkHW59k3cFCCNNJPAZuWAUSXmsqYuz68HLykP+z8wLYT4ss6hqbsIQMl55m3i+ C4Eckh8hk30qL5frSD2Bvg45nuZ2LnMN19MlI2YmZIu0e1FaLvV62cq5MKLN+11ZBDY0 SX/g== 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=LMAaN3fIk1+CGVDUh2TqRwq0ThOKp39rivwNuMj/4tA=; b=Q9NiAlvq5IDTlxJ/xFLHB1hfRXBHc0QLGyVOqIo/Hb0BQouTsgcCScUyxJbCZrdtva CgtWEMN388ptXFU1JwrtnraT7n0vj1C3cg0LvlMMfgoyIzim4+stnF2cSMaW5ErGHcoz fQUn2Wa+dLBcSF24eYGvndvIV+cXtdOp/gmgpmFBcmfKaiSpp0APnGPEdPZ7qL1va6JF rFlSwNWsAHp4hzfMZdozrxXNtkmzqigD6Ch8hY1G9mqjxW6ScNbgyJZDzCdFr3FszntO 7dNvonu1EHnjYhvnvme9VtAhPKZdDpvjiq69vSS/DQJv13gZgWUjtjJ4AkWEY8RmPkXf D/BQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RAa9NDJM; 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 q23si1837003qkj.142.2021.09.16.08.53.48 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 16 Sep 2021 08:53:48 -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=RAa9NDJM; 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]:35974 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mQthr-000844-Uc for patch@linaro.org; Thu, 16 Sep 2021 11:53:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41094) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mQtLd-0001T8-7U for qemu-devel@nongnu.org; Thu, 16 Sep 2021 11:30:50 -0400 Received: from mail-pj1-x1032.google.com ([2607:f8b0:4864:20::1032]:50730) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mQtLT-0002W9-IK for qemu-devel@nongnu.org; Thu, 16 Sep 2021 11:30:46 -0400 Received: by mail-pj1-x1032.google.com with SMTP id k23so4847941pji.0 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=LMAaN3fIk1+CGVDUh2TqRwq0ThOKp39rivwNuMj/4tA=; b=RAa9NDJMTgTNx9GpkVNLwqJ0LDfAQd3EDopF/VYylBs5PbuS+oHwwqa+4ZTgAokNOr 7aZFNwNNgcwp2z8fLITj5eHsPvzOfBj0rpyX91IDECwsfbfUHhrFtn5zjoHuMQUQx1Ql tX1yNokFkclN89E/8C1Nv5zCuvlml7/+/8VI1uYiENrfi0bZZE/I38rC+QwmCLm0IfWO z1X28JAEkG4HI+CQgcpdwZR0+i7O0SyFi2N0ncJR0xYvzCrQ4beubW4af8pTgs7o7dee p1baKyOLRc9EX9XO9KXHofOzmDtLMEhxrEPzdG4C1c1Afrrm91H7l5Ao9fIEWX4P4yBz Heaw== 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=LMAaN3fIk1+CGVDUh2TqRwq0ThOKp39rivwNuMj/4tA=; b=AbNM1ThZIztU1ALhfhQrseWuFdv4dVfuF9bmYw5hcbDVZeEb0wmSreUGGrVd9qcJVt xSu6GQ4tvqS660R3vmH3y3Nj+DH3hZPUitIXJZxGsLRs+h9quVy9MgOTgiyGZIQTr8wC /vfmRyyoUSN+tTgx3jhWq+3MUuR6z4dlGt78YEwTbsInPiWpASsftqSBI/qM840nv/Ew i3aFeeidBK//28TuCzsfvOLLXvLFEGfc9ys/c0cK57ug6Ng9krXhbhpj9/QgJX9Z5Q+h C14vS8bPmt02UIpuF4O3Cg+Nfqj6Xcm4ql5vzcYLWEv4fIrs/ocWW9OrsHHDXQn1lVLM AOQA== X-Gm-Message-State: AOAM530cJ44BuZdkiwaL7rRlHcKN0WLl/Ia6QNw1P3J9rc1IdtfSu9/6 sH76KMWt7T86+DaZTLyN7a2n6PChT8NKhA== X-Received: by 2002:a17:902:b202:b0:13a:2f9a:bd97 with SMTP id t2-20020a170902b20200b0013a2f9abd97mr5381598plr.2.1631806237373; 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.36 (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 16/35] target/m68k: Restrict has_work() handler to sysemu Date: Thu, 16 Sep 2021 08:30:06 -0700 Message-Id: <20210916153025.1944763-17-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::1032; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1032.google.com X-Spam_score_int: -1 X-Spam_score: -0.2 X-Spam_bar: / X-Spam_report: (-0.2 / 5.0 requ) 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-16-f4bug@amsat.org> Signed-off-by: Richard Henderson --- target/m68k/cpu.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) -- 2.25.1 diff --git a/target/m68k/cpu.c b/target/m68k/cpu.c index 66d22d1189..ad5d26b5c9 100644 --- a/target/m68k/cpu.c +++ b/target/m68k/cpu.c @@ -31,10 +31,12 @@ static void m68k_cpu_set_pc(CPUState *cs, vaddr value) cpu->env.pc = value; } +#if !defined(CONFIG_USER_ONLY) static bool m68k_cpu_has_work(CPUState *cs) { return cs->interrupt_request & CPU_INTERRUPT_HARD; } +#endif /* !CONFIG_USER_ONLY */ static void m68k_set_feature(CPUM68KState *env, int feature) { @@ -518,6 +520,7 @@ static const struct TCGCPUOps m68k_tcg_ops = { .tlb_fill = m68k_cpu_tlb_fill, #ifndef CONFIG_USER_ONLY + .has_work = m68k_cpu_has_work, .cpu_exec_interrupt = m68k_cpu_exec_interrupt, .do_interrupt = m68k_cpu_do_interrupt, .do_transaction_failed = m68k_cpu_transaction_failed, @@ -535,7 +538,6 @@ static void m68k_cpu_class_init(ObjectClass *c, void *data) device_class_set_parent_reset(dc, m68k_cpu_reset, &mcc->parent_reset); cc->class_by_name = m68k_cpu_class_by_name; - cc->has_work = m68k_cpu_has_work; cc->dump_state = m68k_cpu_dump_state; cc->set_pc = m68k_cpu_set_pc; cc->gdb_read_register = m68k_cpu_gdb_read_register;