From nobody Fri Apr 4 05:46:41 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1741543100; cv=none; d=zohomail.com; s=zohoarc; b=GMW8w9XlGrubHxh0YH8Iwyn/hE6CKVvxUPn00zlFx/KCLrhTzoVA6stbFuKQIZObxxFZfivZ1Mh4QPmhlgpK8ZZld9XPORXVT433D0SHfk0c2UV3kIgzxUb5xyj0Ysu5JSc/JpK95Tz+puIndpD94DwzArLd8fr0hPFgig8z29c= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1741543100; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To:Cc; bh=EZvFiK30N39QXumXvDCwk1WrhpzfFLfGAKWY9PgROns=; b=T2BlB2PyD82gQfj+e2xgOgrBeWdBN2QpqDL+YLDTzmL/DlJh29TGdH6csKEuInN7/u3F7tFZe8XCSggEoV+QOKX9z9iBVXsg36qrlLr+grXYLk6nYhP1coHaObDvUHzwWWbEFoFkjjKlF0az2fvvU57SIXD9s+3swF2fz/DLo64= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1741543100925758.6500344254695; Sun, 9 Mar 2025 10:58:20 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1trKr3-0000IT-PN; Sun, 09 Mar 2025 13:54:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1trKqk-0007pb-H8 for qemu-devel@nongnu.org; Sun, 09 Mar 2025 13:54:06 -0400 Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1trKqi-0004zO-SW for qemu-devel@nongnu.org; Sun, 09 Mar 2025 13:54:06 -0400 Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-43bcc04d4fcso20302765e9.2 for ; Sun, 09 Mar 2025 10:54:04 -0700 (PDT) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-43cf515c580sm19938565e9.15.2025.03.09.10.54.01 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Sun, 09 Mar 2025 10:54:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1741542842; x=1742147642; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=EZvFiK30N39QXumXvDCwk1WrhpzfFLfGAKWY9PgROns=; b=BBvMYFHY38x8cejshwllHWmu+H9BcBTW1/xhYX6khlICPpFCMPjvbcdIykVg5RW1wi CbUa5Je70LmM5Z7l3AjwvbrbEvd9QCMu2bn8M1wQZ2pHWfwj8aNVDs75HQ+Hwi05SA89 NPyKECXapiFyi/62IyS2Br7brPccbgCG3nPjoi2v6b4ypdNrcRdADiJ7JM2O8IkycDWq kh+O/kUacK4il/M1cXB9CcfOO0kwPkpOuAIY0j7wyAxlN7CRrKzR1HE4V1BdKmIYKC5L DKTiUeXBTE+oY5srczbQsp1EdjNnKUXFN0hg8gvCHO9FHI89YGNzs8x/cH0PhbAW7xkP c3yg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741542842; x=1742147642; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=EZvFiK30N39QXumXvDCwk1WrhpzfFLfGAKWY9PgROns=; b=uJZ/4VqwxATCmP5uy+aZxrwSodTRzSPwCNZoBtMTV+XYHBZdWmYtRgkME0eZf0/ruh 8antLVFPfQsZ97KiuOS9OsTREUCFF1PIhn9fMwoxu5xQBm1afFDOFSLl/pkODtstNE3i WtJc5ve7vTQGdmCLPNjIkpnoyzU857tD7KSPxc0yTNc4nhr7QjDc10kTkG3Nzbr68iuf zJLCBXPLKUgyZsYzGohjYfSrF0X/F84RFXG//V8p9l8lZ2UXofjanBqD2xiTGTmgzQ94 BFkrJ0vrvdkfdkJ7A642AWAc1HoZEnhItSx8HjzaIbHFEgV9QfWMwjetZyc+/wUSzHaI Mjfw== X-Gm-Message-State: AOJu0YwRDuZIO+rz0NJLtl82umellN2QBDO52edm+NiItIFlf9uG2S3x tawanYlVKePUUqeOY442V4b2zT/LxjxTUueeJbW0SaOUa+sMnuRykXDakfOh70/+eTocykpXmE0 fW3I= X-Gm-Gg: ASbGncvt8ZBNYuKEbFWCtSqBNGW8RYBT7RZlsfDg3sy2ytds5pbLLm/HZMjr2i15aTR EvJdRUQa4TwqxR0w5pQkgsCo6/kO5dRPBTIsYcMMRd0w3ywMR5rzBbIMQmP66WcCOwshNR35HG8 eitFfj4YU57x/4Ei6H81XNMAwVYjceH22Nld2gx7PfngKipYc+kD/Vr6QTA9t8IVeNKT9xsHkYQ pjiLgx+DXEDQBQerncDEm50SyWxKUbMgo4BKNfHwFR2RXsZaaN0+LeC1pbYNbzREROU5xdH68sz OHZQu0+diT5aRWFkZlHXLuZvYc77j6NrsIRNsPc9hm+uKeCCMhC6NpJ0Nlc0Fs6e5Jic4z0RSex 2q4T3v/CooBl7dkreHec= X-Google-Smtp-Source: AGHT+IHl1QBXikP2rhymcW1T/1oessap/+xX3/cRIYRt6i2kpQXj1JgHvvFrVHT8Rdn86kmeiiqMCg== X-Received: by 2002:a05:600c:3ace:b0:43c:efed:732c with SMTP id 5b1f17b1804b1-43cefed7884mr15549825e9.28.1741542842483; Sun, 09 Mar 2025 10:54:02 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 24/38] target/m68k: Move has_work() from CPUClass to SysemuCPUOps Date: Sun, 9 Mar 2025 18:51:53 +0100 Message-ID: <20250309175207.43828-25-philmd@linaro.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20250309175207.43828-1-philmd@linaro.org> References: <20250309175207.43828-1-philmd@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::336; envelope-from=philmd@linaro.org; helo=mail-wm1-x336.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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1741543102376019000 Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Richard Henderson Message-Id: <20250125170125.32855-12-philmd@linaro.org> --- target/m68k/cpu.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/target/m68k/cpu.c b/target/m68k/cpu.c index df8b9c53fca..0065e1c1ca5 100644 --- a/target/m68k/cpu.c +++ b/target/m68k/cpu.c @@ -51,10 +51,12 @@ static void m68k_restore_state_to_opc(CPUState *cs, } } =20 +#ifndef CONFIG_USER_ONLY static bool m68k_cpu_has_work(CPUState *cs) { return cs->interrupt_request & CPU_INTERRUPT_HARD; } +#endif /* !CONFIG_USER_ONLY */ =20 static int m68k_cpu_mmu_index(CPUState *cs, bool ifetch) { @@ -579,6 +581,7 @@ static const VMStateDescription vmstate_m68k_cpu =3D { #include "hw/core/sysemu-cpu-ops.h" =20 static const struct SysemuCPUOps m68k_sysemu_ops =3D { + .has_work =3D m68k_cpu_has_work, .get_phys_page_debug =3D m68k_cpu_get_phys_page_debug, }; #endif /* !CONFIG_USER_ONLY */ @@ -612,7 +615,6 @@ static void m68k_cpu_class_init(ObjectClass *c, void *d= ata) &mcc->parent_phases); =20 cc->class_by_name =3D m68k_cpu_class_by_name; - cc->has_work =3D m68k_cpu_has_work; cc->mmu_index =3D m68k_cpu_mmu_index; cc->dump_state =3D m68k_cpu_dump_state; cc->set_pc =3D m68k_cpu_set_pc; --=20 2.47.1