From nobody Fri Nov 14 20:59:38 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=1761563240; cv=none; d=zohomail.com; s=zohoarc; b=XOMgwtVD7UwAwVKUBb60/Pgl5BKQFchThUhU8Br/1HF/mdZlZvTXijRuXC1844reu1BNqO7XC5MTqQcg9GGFoP5ixEbnnBEJjqre9FC3rYfktvPOGvH5gS0Q/YBXKbxgHmMgG0/EIEWD9x7OV+rXXKaBHdMgCtIvQ7u2sx/E1gc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1761563240; h=Content-Type:Content-Transfer-Encoding:Cc:Cc: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; bh=5MFngHGehXpgcde25fEDm3yIeCRkA5CYGfoJypWa7UA=; b=efbCauXSWOXEc7Yf5VYMI1gOLgkjcLEQ3yQob/AjmLkmlV6wo0WKhKrZ6S8IbFX0f5vLk8e0PwIYdNUoWKGjU2csGci0GvcMEL2SINC52P5b6qOIpOIPApfN1jquZ81mhqJuAQaaslk7KcjytThZr5QiBQ7O0NoI3Dlot3L6vbs= 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 1761563240741638.0723616426023; Mon, 27 Oct 2025 04:07:20 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vDL1z-000110-Kg; Mon, 27 Oct 2025 07:04:55 -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 1vDL1S-0000et-8V for qemu-devel@nongnu.org; Mon, 27 Oct 2025 07:04:23 -0400 Received: from mail-ej1-x62e.google.com ([2a00:1450:4864:20::62e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1vDL1I-0005fm-Ng for qemu-devel@nongnu.org; Mon, 27 Oct 2025 07:04:21 -0400 Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-b6d402422c2so1073627466b.2 for ; Mon, 27 Oct 2025 04:03:57 -0700 (PDT) Received: from draig.lan ([185.126.160.19]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-b6d85369697sm757955266b.26.2025.10.27.04.03.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Oct 2025 04:03:53 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 528BB60A0F; Mon, 27 Oct 2025 11:03:45 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1761563036; x=1762167836; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=5MFngHGehXpgcde25fEDm3yIeCRkA5CYGfoJypWa7UA=; b=A3HiKZAag/VDzVesdW8W4BzzVnQ9fQelHdrZha6zAdsN1IhDvaYM2QqkLblgo+w/iT 7R/T3T++7LRK1JI5crVUUJjbBEkpr3kcNrG7MKXLZ3bQPlOdt9HfI5xeHNEU08V+fpdd F5PG0wV/GbyLLi/DOIJZlyQzgvvtPaX3q7s8U07RdZQbMZJgTw0hNxcpaisRyYaUtg8S 1dep6JMdfEVtdrkF4t7c3POCAcD6/FURfCIya/d68TKwB6ZDCFM5BArqbLkGtG2yFDJf cEbyrhPA2MOiTVusla+TOMrJaTnwBhep5J4p62h0JrxCU1cKxygllqgOrvCjf8dnXewB N74g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1761563036; x=1762167836; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=5MFngHGehXpgcde25fEDm3yIeCRkA5CYGfoJypWa7UA=; b=XhYV2XvdkA0hyHfDIXkokCfiwJvOH7AQAqQVOmzanSIKiURZyPbeom2kQ050MZWo7Q N+AxZyn+Zy7bXE85QXHPB7Zg3zK0hp020D2ud1dfOzgQ8oK34Cmd4AgE04bGvZURKlVm Qw7Op2dtraAR6j8yMZsdhASrmf2oWN43tDhXE9B8S1pBRXhCcvo4un1G3RsIPsZZ41yQ qaYZuUmD55iwlU4IAlZhrAbDj+ISXDjC4vu6YvIgd8z3I/GCLKAVLgz2d3H2B6/CWSPl wrDwvLvaStd4MHk7Q5IUPRkM58kO60B3PL0jXlsQC96IYmkhpbybXxSnS57Jy49aQ1vJ 3/KQ== X-Gm-Message-State: AOJu0YyKYifschNYSW3XwfMIykDrReY5ZfI4F6YNFf1z+LuMcRdp5ghp x/ef1Lu1tuEk4+Fjuwqo3P7DTa5eqO128HMjfTRX8MG7dXFxnROQU5dxOuphyH1iA8o= X-Gm-Gg: ASbGncu/D+kSYYXuugydzg6SqIYDq2WLEN9VvThbyAsGD1Fm+fffZV4k7CQSWkZU7U9 XdOl9zvXU6xb7EpqGcmhoY4gTsI6JSdiijuZVDfyk6lD5f/2HOatc/2xTg+k/kNDomxbBvThgSe AvSyk+b9E6TpFZrCXM3zN4x69gaf5tSf8CG4FpxJBo6Jyq2HWEeajFVe+czLUQpU+65bPYEqtlx hchjP/W4Xdc7yuFpsfmTJr/HPVnt8zFtiSwCzBFzt6xfmyDlmnQSzkqBTI0HUZoTbboAb3DI84b xupStEZNA+YvKjcahlBQyhze+ipH0VP6wcjQs1SFo43CkKNFN2G8f1VZSszlThFvygCcyUi4OJs Cjf1jYRMjpKRI9dRGJtDilqp76XcVolGVM1yl5o096aaNhctiScyD+PcjMdvd1OWu/dmSdEhZs4 IkAaRYyuG5QT4= X-Google-Smtp-Source: AGHT+IH3tkpPI8qkMNzSSKaTH+LGz+PSEOooZ0h8e2NnoKxhhJh8kTHLf7OwlNmHT6Lz3ZHEnK/s9A== X-Received: by 2002:a17:907:7254:b0:b6d:6955:aaff with SMTP id a640c23a62f3a-b6d6955aeeamr1290331366b.63.1761563035774; Mon, 27 Oct 2025 04:03:55 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Liu Zhiwei , Alexandre Iooss , Chinmay Rath , qemu-arm@nongnu.org, Peter Maydell , Nicholas Piggin , Ilya Leoshkevich , David Hildenbrand , qemu-ppc@nongnu.org, Paolo Bonzini , qemu-s390x@nongnu.org, Pierrick Bouvier , Bastian Koppelmann , Helge Deller , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Stafford Horne , Mahmoud Mandour , Artyom Tarasenko , Eduardo Habkost , Palmer Dabbelt , Alistair Francis , Laurent Vivier , Weiwei Li , Daniel Henrique Barboza , Mark Cave-Ayland , Yoshinori Sato , "Edgar E. Iglesias" , Aurelien Jarno , Richard Henderson , Thomas Huth , Max Filippov , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Jiaxun Yang , Michael Rolnik , Song Gao , qemu-riscv@nongnu.org, Aleksandar Rikalo , Julian Ganz Subject: [PATCH 13/35] target/avr: call plugin trap callbacks Date: Mon, 27 Oct 2025 11:03:20 +0000 Message-ID: <20251027110344.2289945-14-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20251027110344.2289945-1-alex.bennee@linaro.org> References: <20251027110344.2289945-1-alex.bennee@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::62e; envelope-from=alex.bennee@linaro.org; helo=mail-ej1-x62e.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.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: 1761563243439154100 From: Julian Ganz We recently introduced API for registering callbacks for trap related events as well as the corresponding hook functions. Due to differences between architectures, the latter need to be called from target specific code. This change places the hook for AVR targets. That architecture appears to only know interrupts. Reviewed-by: Richard Henderson Signed-off-by: Julian Ganz Reviewed-by: Philippe Mathieu-Daud=C3=A9 Signed-off-by: Alex Benn=C3=A9e --- target/avr/helper.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/target/avr/helper.c b/target/avr/helper.c index 4b29ab35263..365c8c60e19 100644 --- a/target/avr/helper.c +++ b/target/avr/helper.c @@ -28,6 +28,7 @@ #include "exec/target_page.h" #include "accel/tcg/cpu-ldst.h" #include "exec/helper-proto.h" +#include "qemu/plugin.h" =20 bool avr_cpu_exec_interrupt(CPUState *cs, int interrupt_request) { @@ -102,6 +103,8 @@ void avr_cpu_do_interrupt(CPUState *cs) env->sregI =3D 0; /* clear Global Interrupt Flag */ =20 cs->exception_index =3D -1; + + qemu_plugin_vcpu_interrupt_cb(cs, ret); } =20 hwaddr avr_cpu_get_phys_page_debug(CPUState *cs, vaddr addr) --=20 2.47.3