From nobody Mon Feb 9 23:59:53 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of _spf.google.com designates 209.85.221.44 as permitted sender) client-ip=209.85.221.44; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-wr1-f44.google.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.221.44 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1631467694; cv=none; d=zohomail.com; s=zohoarc; b=XC2BTCEPztb6Q4O2mLNCub/YvKagWZigwZf0dFlPZ/QEYgbWm/IgzImrJgEW21NVagFMItKXr+SLEF5LMXLHWTJVJVtyJnk9V9VfgOxA5ACGWWS86KLsfN3HWltMD+FOV2gMMAt9Ta3fHkmhDZiCAtJSTKqW7Jq0xalAz6uBYDY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1631467694; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Sender:Subject:To; bh=oPh/K3P8lnOCu8w0iWaCapa14gPkR6lDKFebYBGUl3I=; b=FRWp4ZbNoTBlHBx01SuTtOxpnWZKdNOSpkVJ+haB8J4PCwx2wdmp7yixwzTEjgIGEG+dq8txX6gbI4Mtld2DsfxKShDaPzgFfqOsElBUmj7eONrK9GHWYNfe1ffHIMa+Kbv8zVniSaOqoq8UEw3uiZSCpo8ZPKmgxXqLM8trwjc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.221.44 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com Received: from mail-wr1-f44.google.com (mail-wr1-f44.google.com [209.85.221.44]) by mx.zohomail.com with SMTPS id 1631467694448394.8514435004605; Sun, 12 Sep 2021 10:28:14 -0700 (PDT) Received: by mail-wr1-f44.google.com with SMTP id t8so5893139wrq.4 for ; Sun, 12 Sep 2021 10:28:13 -0700 (PDT) Return-Path: Return-Path: Received: from x1w.. (21.red-83-52-55.dynamicip.rima-tde.net. [83.52.55.21]) by smtp.gmail.com with ESMTPSA id o17sm4980427wrj.96.2021.09.12.10.28.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Sep 2021 10:28:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=oPh/K3P8lnOCu8w0iWaCapa14gPkR6lDKFebYBGUl3I=; b=dXJ4QYAvPZQbdHB4twjNThmx7FnJYGb3ffCVR7wYiISSF8+ue2qj3fRkWyM9ZXSEcQ WAfVNRF6DLFKdDJFJCctnySwM4Pe6QZe4H3nosbypAK+uiU8FxJoZ8qYzHTF/ZLWgMYy wMbEc7wvJZchCB6UDkFFl3t6dTz/newsCar0O6eCWZdAfE+LJPuZ4UMHWAziG/JRJu7E lvduJf5yIlPBtuRen4rgWFSj64Wm75QSaZcEhSEmr9By7CUoT24XrKvMLANN2wwNEAuq FS/GX47ipf++ijIxmfW8mUW5SPXlfFhm6gRxuPLz/XdpwBFc3nRRd+Oqf12byzRnF0q5 FWPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=oPh/K3P8lnOCu8w0iWaCapa14gPkR6lDKFebYBGUl3I=; b=df4+llv95IUBJB0lJLjz4WOWKACmIBiJV3d/j299jBs1Nsx9DucQ+yXoE2ujOuQLSs B+e5p23mu2r3wWYwirB+uc1kE4N5lRe7I9/Kficb/U7Bv0ArZcUr9GhwMwPPhWDoGO+K /7CB9UoUa2mI8C+26hDOhCdFw1r6EfbqIOfbKrGYc3lM0yQbXQy1GR7GmgEru/Owq3ch HkdV2+cifhF2YusUbbDUEpJ0HlcSk0vLI0cRy0TmgyoxnQ3pGw0gZW0arpPsgE50t76S kWkZsXiS8ESdi5Rn1PXCRzAA82lk3yLDBDlT2N2MyI2JUL4E40LLFakUidpdp0WjDFMI nVeA== X-Gm-Message-State: AOAM530eP8PP2TEO1A3FZ9XK3Qxp98DzPrPH/Msvu+zhs2O5HjkNzaRi +UV9aVmDxtaB3tfqo5VeQOJtIXaQrYU= X-Google-Smtp-Source: ABdhPJxNRbH90H0I3CBE9cwVoCPxnsiiq/r935CJfxgwk82/8UcByK7xhi5NGN5U5Jeylo5eFXnzdA== X-Received: by 2002:adf:e408:: with SMTP id g8mr8433095wrm.138.1631467692734; Sun, 12 Sep 2021 10:28:12 -0700 (PDT) Sender: =?UTF-8?Q?Philippe_Mathieu=2DDaud=C3=A9?= From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: David Gibson , Richard Henderson , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH v4 08/30] target/alpha: Restrict has_work() handler to sysemu Date: Sun, 12 Sep 2021 19:27:09 +0200 Message-Id: <20210912172731.789788-9-f4bug@amsat.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210912172731.789788-1-f4bug@amsat.org> References: <20210912172731.789788-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @gmail.com) X-ZM-MESSAGEID: 1631467695263100001 Restrict has_work() to sysemu. Reviewed-by: Richard Henderson Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- target/alpha/cpu.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/target/alpha/cpu.c b/target/alpha/cpu.c index 93e16a2ffb4..1ca601cac5b 100644 --- a/target/alpha/cpu.c +++ b/target/alpha/cpu.c @@ -33,6 +33,7 @@ static void alpha_cpu_set_pc(CPUState *cs, vaddr value) cpu->env.pc =3D value; } =20 +#if !defined(CONFIG_USER_ONLY) static bool alpha_cpu_has_work(CPUState *cs) { /* Here we are checking to see if the CPU should wake up from HALT. @@ -47,6 +48,7 @@ static bool alpha_cpu_has_work(CPUState *cs) | CPU_INTERRUPT_SMP | CPU_INTERRUPT_MCHK); } +#endif /* !CONFIG_USER_ONLY */ =20 static void alpha_cpu_disas_set_info(CPUState *cpu, disassemble_info *info) { @@ -221,6 +223,7 @@ static const struct TCGCPUOps alpha_tcg_ops =3D { .tlb_fill =3D alpha_cpu_tlb_fill, =20 #ifndef CONFIG_USER_ONLY + .has_work =3D alpha_cpu_has_work, .cpu_exec_interrupt =3D alpha_cpu_exec_interrupt, .do_interrupt =3D alpha_cpu_do_interrupt, .do_transaction_failed =3D alpha_cpu_do_transaction_failed, @@ -238,7 +241,6 @@ static void alpha_cpu_class_init(ObjectClass *oc, void = *data) &acc->parent_realize); =20 cc->class_by_name =3D alpha_cpu_class_by_name; - cc->has_work =3D alpha_cpu_has_work; cc->dump_state =3D alpha_cpu_dump_state; cc->set_pc =3D alpha_cpu_set_pc; cc->gdb_read_register =3D alpha_cpu_gdb_read_register; --=20 2.31.1