From nobody Tue Feb 10 06:58:40 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of _spf.google.com designates 209.85.221.50 as permitted sender) client-ip=209.85.221.50; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-wr1-f50.google.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.221.50 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1619972251; cv=none; d=zohomail.com; s=zohoarc; b=npv+GWh1A2L3W3z4c6Fy/e7RPlfchrhbd89Q/VyvwKFRgHAa+PnCd3q0AGMHqXtcjcibyxmC2Gqf+Ba8IgYCLuKms24qLaoqu1igz68Xbw2aRY1dq/Gk2muEvwSJLGnHl5WEqjfPmP4vkW1cDCrJS0AQMcjOm7uroFUMaUUZ01Y= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1619972251; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Sender:Subject:To; bh=aRwpX/8Cx1qFim5Lxwv/XxTDijvHeV79c3pumAeSJhI=; b=ViEsoCOd0vwHXCo/ps1meI85HQNhDw/u9zk9DzQ2LVy0E9tkSehL9zG2W2RzCIebUmzx8O46qKQybtKVX3JiOFDUgHfKTrlQ0JhRzhMh17M0SCs1iaFze3EdUQfFpjVOxOj/d1EJbdYZ8vOk2nCADpS/eN7vRaGu3HzGFrPcxh0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.221.50 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com Received: from mail-wr1-f50.google.com (mail-wr1-f50.google.com [209.85.221.50]) by mx.zohomail.com with SMTPS id 1619972251710898.9537966430905; Sun, 2 May 2021 09:17:31 -0700 (PDT) Received: by mail-wr1-f50.google.com with SMTP id l14so3100285wrx.5 for ; Sun, 02 May 2021 09:17:31 -0700 (PDT) Return-Path: Return-Path: Received: from localhost.localdomain (anancy-651-1-208-144.w109-217.abo.wanadoo.fr. [109.217.237.144]) by smtp.gmail.com with ESMTPSA id q7sm9264544wrr.62.2021.05.02.09.17.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 May 2021 09:17:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=aRwpX/8Cx1qFim5Lxwv/XxTDijvHeV79c3pumAeSJhI=; b=U5XJDP0Wsdzm30fty0bgu43F9f5TBt/amse2frvrDh5laGODTZEFCFFV2eTaNy4IBV koa5pB+YWTKwAr/JZlNP4sX+IW9yL9qEz20w3tfCDJ9Xs9QBwkZRkrueRiFptSVKAmgj RQcY4U/5mfUNqDGFp5ekPvPPbVAo03bDV9mjPfdUxGiA4TThSkO2OGKJTL3HNtVC64Z2 CfjGdqxqhdFvuawxGmgLEuqjn+VymqaTlfeL+8M+2GKeYCfc9kBTia18HSTccZ2qksWH J+Wro/t03wH9qKt8+0xJEE2sAT32nGg1dWcErGWric/Mm2EeRJIVPhC8YuIHjyB4IS/B wYzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=aRwpX/8Cx1qFim5Lxwv/XxTDijvHeV79c3pumAeSJhI=; b=J8jq7MTwkkI7A7RtJOOQ9q9Lh1Vp4HYtJpSGPjaWFI2gUMlmxZLVkkSGt6exb4fFH8 Pd5I8lZq4m2MQX9YyxPQ5UDYGbayJmrJbuWxLliTHFu2ZL+SBpW0w1J7Tt84lhL495UT v3vzm5JPQbZy4WWAcipUyx5wqIPHKB7kWdTKjfKdB5Zd124t9VC4/Is3C7oyrByY42QH 3azRU9s3CT1L2UPWZv6garfzigQuc7qZxhACTNHsb2uJlNYYnv/iiCmkyuHm/TsFBZw0 62PvutZ+D+PQSgApZESuX79jG3k+eUUcV6SUWdfvWjDF7RnW1B9Nt9OvFekVH1HE+a0P ZaGA== X-Gm-Message-State: AOAM530o7z4h8WslZ2CYkk66C0xNC6gIOf9in0feepAPOlrgURML9RHj hqnhtgGxuv5Mx/j79hkS40g= X-Google-Smtp-Source: ABdhPJyyMo5UUEPEqiyVU7gYLEKjuYDeYvBCWZUbIPIUtIbztVI5Sts8K7oWd4+CzfNxhZAIsW3BSQ== X-Received: by 2002:a5d:698f:: with SMTP id g15mr16134549wru.316.1619972250014; Sun, 02 May 2021 09:17:30 -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: Jiaxun Yang , Aurelien Jarno , Aleksandar Rikalo , Huacai Chen , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Richard Henderson Subject: [PULL 21/36] target/mips: Move cpu_signal_handler definition around Date: Sun, 2 May 2021 18:15:23 +0200 Message-Id: <20210502161538.534038-22-f4bug@amsat.org> X-Mailer: git-send-email 2.26.3 In-Reply-To: <20210502161538.534038-1-f4bug@amsat.org> References: <20210502161538.534038-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) We have 2 blocks guarded with #ifdef for sysemu, which are simply separated by the cpu_signal_handler definition. To simplify the following commits which involve various changes in internal.h, first join the sysemu-guarded blocks. Reviewed-by: Richard Henderson Signed-off-by: Philippe Mathieu-Daud=C3=A9 Message-Id: <20210428170410.479308-16-f4bug@amsat.org> --- target/mips/internal.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/target/mips/internal.h b/target/mips/internal.h index 754135c1421..3c8ccfbe929 100644 --- a/target/mips/internal.h +++ b/target/mips/internal.h @@ -151,14 +151,13 @@ void mips_cpu_do_transaction_failed(CPUState *cs, hwa= ddr physaddr, MemTxResult response, uintptr_t retadd= r); hwaddr cpu_mips_translate_address(CPUMIPSState *env, target_ulong address, MMUAccessType access_type, uintptr_t ret= addr); -#endif + +extern const VMStateDescription vmstate_mips_cpu; + +#endif /* !CONFIG_USER_ONLY */ =20 #define cpu_signal_handler cpu_mips_signal_handler =20 -#ifndef CONFIG_USER_ONLY -extern const VMStateDescription vmstate_mips_cpu; -#endif - static inline bool cpu_mips_hw_interrupts_enabled(CPUMIPSState *env) { return (env->CP0_Status & (1 << CP0St_IE)) && --=20 2.26.3