From patchwork Sat Nov 5 19:52:24 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Laurent Vivier X-Patchwork-Id: 621735 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp1128379pvb; Sat, 5 Nov 2022 12:55:59 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6VJMLjyQr+cmw6Q98oZDGMnG8OckRX/1hnuE/1Z2CDMugYaEmnCduH6yPXiKfeVakWbrYc X-Received: by 2002:a37:8ec1:0:b0:6fa:8040:8a4b with SMTP id q184-20020a378ec1000000b006fa80408a4bmr9509582qkd.782.1667678159101; Sat, 05 Nov 2022 12:55:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667678159; cv=none; d=google.com; s=arc-20160816; b=QE0capFWPMjM3G/Ld553a9iGLx8oSXa4egELJHL+T5o4GuyPJHJ+PEtAsVZhyK4WX+ AnSWDuYKf8FuhdarcHAlrISBkNamtAu6k9nwoQ7cRQwLeXF+vxUm90EeV8VmJTOaDpNX QdVn2T8g76pN1MZE+WUlZRrIjPbd1XEg7rJ7pF27xxOik2Ws09DTgJ4YRJSMw2fmVEZ2 Kn8XJOYzCCV5jCR/1+LnzdS9XxRFj4E5wDIlE/4E7o1ZOfOePolFaYWOCPkFR+25c1lc 8cxmqkv3yuUpep3H+xux0Z5edH1vGRNyfkYIbGtV+xJgkmAwm9tLZEzDePNVkWBD7Dqy xRLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender: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:cc:to :from; bh=REfdMKCkyce/KYUqI1lPnf86AuZXrtm7m/+PznGHSf0=; b=M8Ev1JEJoED3YNc8s6csTW01NJWj1RZ2KRz4ESKGHICkA+oJ7cdbseCv8fRcmoPymC IhxM+c/Dkg43JtMDuy/RdW8bltZPRySo1rubo8hyn+tpA+SirbSd7QfWzrB8loREZRg2 MJp6NP1Z8l7nGqzmUErwDAK633ybyZapFgTXLPaQqGyZKcZGWIUYP3ovLvxA1NHMNtyI SRRFtk5RtQz5UhtG3xivwE1eMlV4Cakb7gTBAydUqQRAbYh6gA165DmaHQu8X0DPmWWJ lbeMu2vaG64x6NQyb5ZVxCb6zFw9pr84IQOy2AqvAb0OEYvazXTTag0PMQjMkWmCbA9U aWbg== ARC-Authentication-Results: i=1; mx.google.com; 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" Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id li19-20020a0562145e1300b004af8a33b0c1si1484087qvb.476.2022.11.05.12.55.59 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 05 Nov 2022 12:55:59 -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; 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" Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1orPDc-0008En-PF; Sat, 05 Nov 2022 15:52:40 -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 1orPDZ-0008Bh-Im; Sat, 05 Nov 2022 15:52:37 -0400 Received: from mout.kundenserver.de ([212.227.17.10]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1orPDX-0003a1-5t; Sat, 05 Nov 2022 15:52:37 -0400 Received: from quad ([82.142.8.70]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MHndY-1olIWv3VSA-00Evzt; Sat, 05 Nov 2022 20:52:32 +0100 From: Laurent Vivier To: qemu-devel@nongnu.org Cc: qemu-trivial@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Laurent Vivier , =?utf-8?q?Alex_Benn=C3=A9e?= Subject: [PULL 4/7] target/m68k: Rename qregs.def -> qregs.h.inc Date: Sat, 5 Nov 2022 20:52:24 +0100 Message-Id: <20221105195227.354769-5-laurent@vivier.eu> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221105195227.354769-1-laurent@vivier.eu> References: <20221105195227.354769-1-laurent@vivier.eu> MIME-Version: 1.0 X-Provags-ID: V03:K1:KqkWFJF4qEqDsMz6J3gdsinnXe2P7pXNcsCTwHrIej+gWXe98oG a2tESZt5gPPY9Gqw1l6uRJic0KOM2iz1k+Nn9usf9eaWrOUSwwCzqw5KO+b0t3yd6yEkqzS tBU5AsZY8DnHfP0ho4n/fpeB+ivJ/Yi7Gmnajaz3EE0QaT3vei4/ODADFm550kNMSPr7tNx oOwayi/18+eCWm6aLopdQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:SrQzScEA6PM=:yHwhGHzyrD84uoWJiXOK72 JgCP/newo+WK1943wd878jfSFHWKSdbF0xIjsF/sPxrcBIOHMcJePuG9fBF0DM5DO24Z6vQtj A+iHGdKdXBPWNsrWcSxN6mcQ3aVvB7c+DCDT4o2wY+eSP3YxzV8j40+FBJHPjNiOAYmOiipiI xnht9+yX+Her5xgnuqcA94oALnIdcTryj9t5r50KJtdztpwmbQ+fMTCjB7crMV+LCHtkJWZUQ HZId6LK/MStqhaJt/CR0UNnv7gWU4+UlSwKZ6YRpSSJzvodnDYVRcUGHw9N9QF7dtltuRJwli GWl8Rs11wj4zU5mghOZgdnfpNmpWqDzOaaF9hw/GH5d3032bF1dZSeKsZHq0Yw6pUNOZ9B9KC PK+MjC/YpsRASnD3SeJkK1S1hyjZZoI76X0ctPJ+HsLu9Im2oAuhKFJSvGX93Elamk48yb9+f teU7l6Tufmkyr5s1MEZoguBW1ldEtoBKUCx8KxHJy4tcBYeTITQl+AeHOoXKhQlZGfbCR7MHW WZXssddRC/3eRI/FpdexMh4Ez9KUdhc9k1+FHDi2WHYkS7jx7tIH0Lj92Erms2a+S19igAQTl 02rZ3LwmUCbuLst1uAbBo8xIhIQxNrO1zIFP3YtuowfQVV8a3i/cKtT4VFDskU4ABEyq/gfDy CnrIUW5xxMQiGTsjk21D/8VNF++M0VLvTkOLc9MTC9p+ClWKANNVGVRyILw6DEpLI4ocNiV2K 2shWdwNoBI88fw0qUwVX4V7pdQf9KjYDWUuTE6xouWFCGgW92CpTldMBjNs/mCuHPr2K/bFKM IrWgKc1 Received-SPF: none client-ip=212.227.17.10; envelope-from=laurent@vivier.eu; helo=mout.kundenserver.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_NONE=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: , Sender: "Qemu-devel" Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org From: Philippe Mathieu-Daudé We use the .h.inc extension to include C headers. To be consistent with the rest of the codebase, rename the C headers using the .def extension. IDE/tools using our .editorconfig / .gitattributes will leverage this consistency. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Laurent Vivier Reviewed-by: Alex Bennée Message-Id: <20221025235006.7215-2-philmd@linaro.org> Signed-off-by: Laurent Vivier --- target/m68k/{qregs.def => qregs.h.inc} | 0 target/m68k/translate.c | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) rename target/m68k/{qregs.def => qregs.h.inc} (100%) diff --git a/target/m68k/qregs.def b/target/m68k/qregs.h.inc similarity index 100% rename from target/m68k/qregs.def rename to target/m68k/qregs.h.inc diff --git a/target/m68k/translate.c b/target/m68k/translate.c index 5cbde4be3404..18418312b14b 100644 --- a/target/m68k/translate.c +++ b/target/m68k/translate.c @@ -39,7 +39,7 @@ #define DEFO32(name, offset) static TCGv QREG_##name; #define DEFO64(name, offset) static TCGv_i64 QREG_##name; -#include "qregs.def" +#include "qregs.h.inc" #undef DEFO32 #undef DEFO64 @@ -75,7 +75,7 @@ void m68k_tcg_init(void) #define DEFO64(name, offset) \ QREG_##name = tcg_global_mem_new_i64(cpu_env, \ offsetof(CPUM68KState, offset), #name); -#include "qregs.def" +#include "qregs.h.inc" #undef DEFO32 #undef DEFO64 From patchwork Sat Nov 5 19:52:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Laurent Vivier X-Patchwork-Id: 621732 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp1127871pvb; Sat, 5 Nov 2022 12:54:26 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6wrXgQruqM74+PTHmknoR+qTbGNzxVISYQlX2vIAb90DGikh5ynZCOeBmms7Ixg95J4kh4 X-Received: by 2002:a05:620a:2492:b0:6fa:4014:20c6 with SMTP id i18-20020a05620a249200b006fa401420c6mr21151200qkn.129.1667678066429; Sat, 05 Nov 2022 12:54:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667678066; cv=none; d=google.com; s=arc-20160816; b=VBSOb1nFs2mASD1D7ULyrjMHVZRyJt3NYj9txSjO1GNhd4pV/7d+FPl4iK05J9BzRn wLi137QjM/OeShyeLKcSjvy5l5tknTpG2laJM+BHMEQg7xAkleH1T1Skcyti8ZrCU+aF TqweSGvFtHV44j0NQfcHzh5T4waS855VzpzZwjtPrf9cOSbtoZgY3HlHyNS1Crop4tzU G5afSO7gwLeXayDWWwy0VQIvvfX0rNlfcqrWE1YqbUYFDLPPk/IJI9CIfX9zOi88vWSd ZFvIGuWs9NUL9iurJkY7hjyFntCbFmsY7c601XxIstAMzT2iBCBIrSyYxWySjvKhEzmC 6msQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender: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:cc:to :from; bh=xLB6Rfok5IiBB+WPnmpsfGmto5Jo9jwwTCrhVqxPToA=; b=AVhyEdpgRtR4+NQ4S0koFKjgObaqvlNu/Bp312IbXz7ydBF0PYfazr9wZ9dn/1Be6D kPmjBdOStH9Nu+DHQyvEqAF9qMr9+ITVCGYVnIp3bcZcUs0jHMZIz5J33DGn1vwD4RkO 56DfR66cZWHjwKshxg5n5W1M8nfr+5KjaSJjwvlj2FdCD9Fdlg6kKd1mXCXhxon5+nUH U4DapO+AG+B+Ad7vJcAZgSQIRVILpeEM2bfWYu031C88a6QhjIC1MXotvLX00JM1IClw ibLUOeARdUd/jD2pzrDisbI9fDatpfR4xY6aRlq267PwPhDCw2qtN0MHwxNakE7fDZgB 2LJg== ARC-Authentication-Results: i=1; mx.google.com; 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" Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id s10-20020a05620a0bca00b006e49c4a38d5si1784690qki.536.2022.11.05.12.54.26 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 05 Nov 2022 12:54:26 -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; 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" Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1orPDf-0008HB-Sf; Sat, 05 Nov 2022 15:52:43 -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 1orPDe-0008Fs-JI; Sat, 05 Nov 2022 15:52:42 -0400 Received: from mout.kundenserver.de ([217.72.192.74]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1orPDd-0003bY-0C; Sat, 05 Nov 2022 15:52:42 -0400 Received: from quad ([82.142.8.70]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MowbA-1pMYBi2FR8-00qTk1; Sat, 05 Nov 2022 20:52:32 +0100 From: Laurent Vivier To: qemu-devel@nongnu.org Cc: qemu-trivial@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Thomas Huth , =?utf-8?q?Alex_Benn=C3=A9e?= , Laurent Vivier Subject: [PULL 5/7] target/s390x: Rename insn-data/format.def -> insn-data/format.h.inc Date: Sat, 5 Nov 2022 20:52:25 +0100 Message-Id: <20221105195227.354769-6-laurent@vivier.eu> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221105195227.354769-1-laurent@vivier.eu> References: <20221105195227.354769-1-laurent@vivier.eu> MIME-Version: 1.0 X-Provags-ID: V03:K1:4QjrSxt+6zm8KAvWJtUazKJToJ0b15YRusHzLmi4JHDPYMhl0Bv pPYJyg/Hp4QGPfxASGXWi/Oec26Ei4ulU1imbTl+T0VU4a3u/+kiMMawZcuC93dQgEA5Yqv cUEXVzx1ALV4Z0t292uI8GOLo2FGK0z0Ou72B07o55wer0IuqtrV63zp/q92zUKsLUqFFXe let9SD6EFM/3uLVIJ6Rjg== X-UI-Out-Filterresults: notjunk:1;V03:K0:WnVf/7A3ocE=:4TiXxhbJgrttymcKWPgTEY 8rgqx3RDijYCnRGS3HaU9zgxD4vSVExTrXe01Yhk8CtaxPFcKt+WPPkrNmMDjkNwAJZGJWjm/ 2Pio1FR9UUYiF9win7QHAZaEbE70xJKzIbcfEiw7XU9viWkORO1R9uaNStwS7npWpDfr4XfZh JLgMZnEDwLlkFbd+Zvx98f9gd5HxlukimxjOh58MreHA4DxLYYoycIoBMOxSm4AP29Qq3p44U r3awSG7lUcmJduv6UZOKmkMT7iUaghRmONtuBbCLHGlj68WGy9Fa4TYKnRmwUsYgiagFmdxPS 5cYa0gQNsFOoTVEf/CI/ofIpoAYiALU/MfIWRALkxv1BrIChmgXJ2WKPsWViaHu2EGLugzteC B2pgItt2VnrG4oY4v2mFbtfn0kwv38EmdtJjxLR2aLJUReTt/4VuiSRN1pTbyv+qvR0HWfIOM LIpGGuU9aTTah6JZWVsuLBncK7t7OFgVfY/9Pro30tmz2UNpwsnQr+KpWrDfzHsyDR4BAqMJA F7m9xCgLUKWY0s5VKe5cfsG4OLry8UiJO40A1qQaFlBbAtdQtt3XvUXj6VX9et/a+M/WetUj3 TxVGVP9OWZ40btm4lWKFQh9Yv+zp45cdrGBjcBBc86x8hMKdMsmikTEt6MHlSYeYnKUbu0Omk ioQgSBoBRA+TxR3K+0NBsCTKIkJfZ8Mtg5PlWxc7ajrXG7h7mEcvGS9FHVoDUH52kxjoScvxW MgVOi0cS9Ie1Db2U8yiUmq9OARnYO/dVnQFnXVQculEHWNeUKC1/zX4HC9qClzez+5JT59bGw 8Zt67DY Received-SPF: none client-ip=217.72.192.74; envelope-from=laurent@vivier.eu; helo=mout.kundenserver.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_NONE=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: , Sender: "Qemu-devel" Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org From: Philippe Mathieu-Daudé We use the .h.inc extension to include C headers. To be consistent with the rest of the codebase, rename the C headers using the .def extension. IDE/tools using our .editorconfig / .gitattributes will leverage this consistency. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Thomas Huth Reviewed-by: Alex Bennée Message-Id: <20221025235006.7215-3-philmd@linaro.org> Signed-off-by: Laurent Vivier --- target/s390x/tcg/{insn-data.def => insn-data.h.inc} | 2 +- .../s390x/tcg/{insn-format.def => insn-format.h.inc} | 0 target/s390x/tcg/translate.c | 10 +++++----- 3 files changed, 6 insertions(+), 6 deletions(-) rename target/s390x/tcg/{insn-data.def => insn-data.h.inc} (99%) rename target/s390x/tcg/{insn-format.def => insn-format.h.inc} (100%) diff --git a/target/s390x/tcg/insn-data.def b/target/s390x/tcg/insn-data.h.inc similarity index 99% rename from target/s390x/tcg/insn-data.def rename to target/s390x/tcg/insn-data.h.inc index 6382ceabfcfa..7e952bdfc828 100644 --- a/target/s390x/tcg/insn-data.def +++ b/target/s390x/tcg/insn-data.h.inc @@ -8,7 +8,7 @@ * * OPC = (op << 8) | op2 where op is the major, op2 the minor opcode * NAME = name of the opcode, used internally - * FMT = format of the opcode (defined in insn-format.def) + * FMT = format of the opcode (defined in insn-format.h.inc) * FAC = facility the opcode is available in (defined in DisasFacility) * I1 = func in1_xx fills o->in1 * I2 = func in2_xx fills o->in2 diff --git a/target/s390x/tcg/insn-format.def b/target/s390x/tcg/insn-format.h.inc similarity index 100% rename from target/s390x/tcg/insn-format.def rename to target/s390x/tcg/insn-format.h.inc diff --git a/target/s390x/tcg/translate.c b/target/s390x/tcg/translate.c index 03efccdf9f92..2fbdab72523e 100644 --- a/target/s390x/tcg/translate.c +++ b/target/s390x/tcg/translate.c @@ -1011,7 +1011,7 @@ static void free_compare(DisasCompare *c) #define F6(N, X1, X2, X3, X4, X5, X6) F0(N) typedef enum { -#include "insn-format.def" +#include "insn-format.h.inc" } DisasFormat; #undef F0 @@ -1076,7 +1076,7 @@ typedef struct DisasFormatInfo { #define F6(N, X1, X2, X3, X4, X5, X6) { { X1, X2, X3, X4, X5, X6 } }, static const DisasFormatInfo format_info[] = { -#include "insn-format.def" +#include "insn-format.h.inc" }; #undef F0 @@ -6143,7 +6143,7 @@ static void in2_insn(DisasContext *s, DisasOps *o) #define E(OPC, NM, FT, FC, I1, I2, P, W, OP, CC, D, FL) insn_ ## NM, enum DisasInsnEnum { -#include "insn-data.def" +#include "insn-data.h.inc" }; #undef E @@ -6223,7 +6223,7 @@ enum DisasInsnEnum { #define FAC_MIE3 S390_FEAT_MISC_INSTRUCTION_EXT3 /* miscellaneous-instruction-extensions facility 3 */ static const DisasInsn insn_info[] = { -#include "insn-data.def" +#include "insn-data.h.inc" }; #undef E @@ -6233,7 +6233,7 @@ static const DisasInsn insn_info[] = { static const DisasInsn *lookup_opc(uint16_t opc) { switch (opc) { -#include "insn-data.def" +#include "insn-data.h.inc" default: return NULL; } From patchwork Sat Nov 5 19:52:26 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Laurent Vivier X-Patchwork-Id: 621734 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp1127973pvb; Sat, 5 Nov 2022 12:54:44 -0700 (PDT) X-Google-Smtp-Source: AMsMyM70gDE440ZHQ1vTFS6D0QifHuv966+w9TWYmNLd3HRBrqT2LcsdyD4TxrDqCvJKI2MbGsZq X-Received: by 2002:ac8:720f:0:b0:3a5:4121:6299 with SMTP id a15-20020ac8720f000000b003a541216299mr19386199qtp.473.1667678083995; Sat, 05 Nov 2022 12:54:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667678083; cv=none; d=google.com; s=arc-20160816; b=GSprAeLbzyYNxJfcYjnsg/WjHqlVXTJelO/bCx6euZhe6J1yluXlE9lwQ/JQCbLi66 yi4GCKBmrCkaM3mCUz+M9+XxaHgT/i+ea9S1c5Z3znann9JJegcWJajaSKwtDYntWcGq Ibg1n0BF4w0vTAKOkItDUpTkL4ybff2oQk0W9L/EiL6iHB/9cWBlAO3UZlOIiJNIHacr hScO1y8rb8b5xlyaUSTXyGlZx7nkSZ+x1DA9RracdzWemYm/vouQUmFMlgyxUPNPBZAl 0pAoP170AmHWfvOW6T9H4d8Kl5PnXF002idLvYLTKzn+BI7LDmExPQQocTxOgSeKuL0I ryEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender: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:cc:to :from; bh=g8Z9v9xXB1fJarIkYtb2Mxzx/Mds5g4p6cT/feythKQ=; b=haysR64kuicrdQnQW0/LdaRrgQS5nkGx+t+YvCNuF9q3piKzBPDAa0ofQ/OS/xEkx1 Mtk/ylDvsFhPct2ZyEGxAk8NbreNp7Ui4lJUn8yzQvuflqMdP6N5KFjhbHPlqdpD62Al 34A6+MH9h6IcRTpGg9wr9EnymYWSzyNqMBlGqw3cC02fSQNxYt/MIzUgZP5GIQpMV6MU yqLHHfIWjSapCkyYO/4IuPwFY5XLcNdBiNNn8kb88qI8VZ1us+Vsgt/S+lNYgtQNtz26 2Q2A5vRbk5RHo0iZ2wNySkLRyl2rcR1b9O/KxM3nxGbPL/c8yDdqwW8whA8ii/YbIiQH svxQ== ARC-Authentication-Results: i=1; mx.google.com; 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" Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id cn14-20020a05622a248e00b0039376e9e591si1886804qtb.372.2022.11.05.12.54.43 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 05 Nov 2022 12:54:43 -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; 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" Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1orPDe-0008G2-UV; Sat, 05 Nov 2022 15:52:42 -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 1orPDc-0008EI-2m; Sat, 05 Nov 2022 15:52:40 -0400 Received: from mout.kundenserver.de ([212.227.17.24]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1orPDZ-0003aY-QS; Sat, 05 Nov 2022 15:52:39 -0400 Received: from quad ([82.142.8.70]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MZCKd-1oVhNg0dzF-00V64U; Sat, 05 Nov 2022 20:52:33 +0100 From: Laurent Vivier To: qemu-devel@nongnu.org Cc: qemu-trivial@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Bastian Koppelmann , =?utf-8?q?Alex_Benn?= =?utf-8?q?=C3=A9e?= , Laurent Vivier Subject: [PULL 6/7] target/tricore: Rename csfr.def -> csfr.h.inc Date: Sat, 5 Nov 2022 20:52:26 +0100 Message-Id: <20221105195227.354769-7-laurent@vivier.eu> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221105195227.354769-1-laurent@vivier.eu> References: <20221105195227.354769-1-laurent@vivier.eu> MIME-Version: 1.0 X-Provags-ID: V03:K1:RtbVOQA8DmxeMJwho8KRYg9YuM379GzqaklNLJ6TdWj/0LLFbF6 VTg3y5ocosSbG8bZoe9yDnQ9CMtQGYJ+IKbUt/vaPIhRTgjwhZoECPOZKuT+CB51yeWz9Yk EeIbegpzq4DewUHkdoAE1PfKU8IyuXOcvBhx8ftOH+HZdMqQDE86D8aoaBni30ui41KooD+ RLh/AQ2gD4pCVjNO4OL4A== X-UI-Out-Filterresults: notjunk:1;V03:K0:tT3W9eOWObY=:t0FbwXx4RB0G3Cy/NoUDmH 9TNaR3QHz61hy0ql3Ym0+4B4kITZd8Gt6PWRTor7ArQqe5mown98iBsKCOIhbmTXtr2mIc4E9 H9ZGeE+dIfUz3aIfMSlv9MmG1uN+XeU21UpYySGpQAUhlbchZ966+9pwX0O+qk9YASfANSkZM KQuCvj1PrBpJENHDEJ7g5SGw14TV+Tc1aCfizloyy1+SsmRSUeTlYjT3aBEv6wjkNB3y+G5fG Nv8VD95bi0arFwrY7b+E0VeQ1nD1flwb1K0KTSUTMkHlmw5fT4V8qhHdvXrgO+4uoGTcErSrS tO1tP23CMJ6N0Xh28fSJlAYfFxX2ak1ZsQzQd3TP0MyT3JYnNLA13o0uPK1eUaxykFN9d1xHa Y28QGndM3cRzpqqT0LWkkhCBG4IZrLESBJOuM+LuN762cLfAhsxvpxHPkmMRsHATSUNt3Tpnq 5PYIY2UplggOpIhXs1++Gb6p5y1Q/I/mseI2jbKe3rlcUL6RMXDo67L+OKnA83cSWoNrXUVtn fGuj+Hd277AiwwnxZGJe1MzSOqKO8b0sMaOuskCJkQpzfWNuLnHlMfX0fv5VG2zNYxtVFG/DI PUpsJb4t0xV3PWDa0/oRdfOaYGtlUmW8iZumpFRBnhcUr1zY2owG3CziDpAnQv6uouGqCT5hz yjLcttOulctQl9InQtmeCqUOB8XMlybVIUezXNggAqNBlXHnzJonu97x84qt/gL/Rw9Gr3/QC 8R7J/qMs/tlZIMsCN+D9NXzjv3gxAfPvtojYjVdskpFHTnO4D8yBz3s3jgp35ds47VkQbZ/O1 qIqOdYp Received-SPF: none client-ip=212.227.17.24; envelope-from=laurent@vivier.eu; helo=mout.kundenserver.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_NONE=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: , Sender: "Qemu-devel" Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org From: Philippe Mathieu-Daudé We use the .h.inc extension to include C headers. To be consistent with the rest of the codebase, rename the C headers using the .def extension. IDE/tools using our .editorconfig / .gitattributes will leverage this consistency. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Bastian Koppelmann Reviewed-by: Alex Bennée Message-Id: <20221025235006.7215-4-philmd@linaro.org> Signed-off-by: Laurent Vivier --- target/tricore/{csfr.def => csfr.h.inc} | 0 target/tricore/translate.c | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) rename target/tricore/{csfr.def => csfr.h.inc} (100%) diff --git a/target/tricore/csfr.def b/target/tricore/csfr.h.inc similarity index 100% rename from target/tricore/csfr.def rename to target/tricore/csfr.h.inc diff --git a/target/tricore/translate.c b/target/tricore/translate.c index c5b7bfbf2013..df9e46c6495e 100644 --- a/target/tricore/translate.c +++ b/target/tricore/translate.c @@ -388,7 +388,7 @@ static inline void gen_mfcr(DisasContext *ctx, TCGv ret, int32_t offset) gen_helper_psw_read(ret, cpu_env); } else { switch (offset) { -#include "csfr.def" +#include "csfr.h.inc" } } } @@ -418,7 +418,7 @@ static inline void gen_mtcr(DisasContext *ctx, TCGv r1, gen_helper_psw_write(cpu_env, r1); } else { switch (offset) { -#include "csfr.def" +#include "csfr.h.inc" } } } else { From patchwork Sat Nov 5 19:52:27 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Laurent Vivier X-Patchwork-Id: 621733 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp1127876pvb; Sat, 5 Nov 2022 12:54:27 -0700 (PDT) X-Google-Smtp-Source: AMsMyM42zXunVjjVHQTAPtKg/95zjBl+aCW5giHBgeSQgfWVZmM1mSQT7R/WiRTzLTiy+pxbV6rW X-Received: by 2002:a05:622a:15c8:b0:39c:ea8a:82e3 with SMTP id d8-20020a05622a15c800b0039cea8a82e3mr34154725qty.146.1667678067377; Sat, 05 Nov 2022 12:54:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667678067; cv=none; d=google.com; s=arc-20160816; b=WTz2B/lo0Rg1fzAWvuV5T+9UMZAM+gQxq8USbltLIeivYCBpAAmAB9pz8uZZkeGrDY P6vaO8EKEec+Bo48Ei+TCXokSFzS7IwSZGly7YdtStsGPFwhtqDG631Pdrq8vHOuGxoO +44HTm9T6sW8RTshFx9BC+dYED58gZNd2lSykETvYDPVOTJS2HTwKJHPsc0Q20ZnocUm tP/8KRKWpft02CzLQST41HshYyRvqzJdowDfA+r9Pb4Nww1Rtbe205GoJ8QlY8TCQEEM DeSH98eyK+Rnd3QTO2KFXY/vUsDJJjC4CmyB8k8eapCHPcoXfDdFhvJdYKvgMiEMeFIR 561w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender: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:cc:to :from; bh=C6VQt2v0P1P9scb32kIgndYoV5pRSGmmoThczyepSrg=; b=j5pWdyTglmzHP+EiRdaWZBRtKb7LUMdQCbLUOaNAAAMKtTGjfVEy7/0YoBhe0kGsJB mqOm9DrLViwPfalbN1eSYPW3y4MpMD4gJzWM8tiWJC6Tq/su/zCmsff3l7TSwYciekKO ypoLOS4u2k0XVCP3ocPtBBaMRpRmGlrrYPo4Vh4q5kcF8RPIQ6//RsP26E7z9+WTZ/AS sUtTNQJW7R3/bTtNvn1CpjTbr1odBMdP6eJ6oma6f+F9eGRUT55SMBmuj71szbCJJlRU E1YpgJ1vzXr3wnR3lv+eWGB2kCdz3A6vIxW3lB5brAg2lpatvIR2odzZNnyqTo7M/agi DLBg== ARC-Authentication-Results: i=1; mx.google.com; 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" Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id h26-20020ac8777a000000b0039a592d2409si1728695qtu.269.2022.11.05.12.54.27 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 05 Nov 2022 12:54:27 -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; 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" Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1orPDb-0008EF-U8; Sat, 05 Nov 2022 15:52:39 -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 1orPDZ-0008Bg-Ir; Sat, 05 Nov 2022 15:52:37 -0400 Received: from mout.kundenserver.de ([212.227.17.10]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1orPDX-0003aD-Tt; Sat, 05 Nov 2022 15:52:37 -0400 Received: from quad ([82.142.8.70]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPSA (Nemesis) id 1Mrggc-1pKuYf323A-00niqp; Sat, 05 Nov 2022 20:52:33 +0100 From: Laurent Vivier To: qemu-devel@nongnu.org Cc: qemu-trivial@nongnu.org, =?utf-8?q?Alex_Benn=C3=A9e?= , =?utf-8?q?Philippe_M?= =?utf-8?q?athieu-Daud=C3=A9?= , Laurent Vivier Subject: [PULL 7/7] tests/unit: simpler variable sequence for test-io-channel Date: Sat, 5 Nov 2022 20:52:27 +0100 Message-Id: <20221105195227.354769-8-laurent@vivier.eu> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221105195227.354769-1-laurent@vivier.eu> References: <20221105195227.354769-1-laurent@vivier.eu> MIME-Version: 1.0 X-Provags-ID: V03:K1:idn9M6w809Wg0kzBDRVKIgdKyAQZl8yRNnohGPOT3bZ8wB2D+Tj 59UHgvUOKM1J99pNc7Jft31BH0W584DHj4A1OhIHktv/9ZichgK3/NlVlE18d/LihG1iEHu wnI47fZTP/vSf1iOByTurVGxfqLz3kK/KMES15S3tiykv8/annIApX/iwqxSgfabytFqJYL bGcBlbOq1S75nMfOZEAZA== X-UI-Out-Filterresults: notjunk:1;V03:K0:pdIXSVdsuio=:HfKm1WmNnl4jFUYsHPF+1w LpS6eNISJg7qhj8o8W55RTiSt3kVaUg4025Ii63CpJtdr/IZhYCEPfAQeNm0iBBJcIweOK/4C J9f6Hoknr24yl668j1RJHQ9FpqSBLDyv8ckHQ2ToCiaeyuw8NGc4Z/JdokKkZGu+PBYKkWdzs t7s8VA1C2Eksy1GCc7b10eW0a8JK/8E8cQVPZe+CxAYtkqqTbWyhGmxfHgX74s52iex8SCmqE J5ivpV1StuASh9HmyVH/pm7YOOBnLQGe+Keo53oGoTCZMixyaUGYqUAeloLv65t09yyHmMk6i OV04LRrVYhaljGgFV2Shg/7kv0WXyIwmZTsRUYDtcckcPFvmgMik4jQ1okD1eu5L2K/zTKTCW 4E4ZTxCXHXAWKu6bpfZnYmUt61BAl7aquxpwpoENiVUoeOj3XYxueSuNfiUdLJMRbVAINBLGn 3q5lLLHxpDUYpfK6CM/lOQvfrnan2f8q6cs2p/gsn5qS1trfZsFu6Ve78C6A2XM6NLx8JrHht ulavEWCTmJS7sg3KxgjfsWmgLXn8ommlJE81MVZbeHnL/NXY+RLFb3mFYT0yjaLY92XoywAiO oRV78bGv2SO8gNxsDQmI4jKXmy/7NvS22Z10gT+vqE6Yi07HOSwdXQlKgBevTv5i+uhT+iiHn OKp7aNmEZta222iLwbN/Yhm+Bl2uZKkk22LLAWoH/puGOu8zE+RKSh57UQnFMuGNMShxruZbw PvlMxiuv1pRq7fI1dWcwIbiO4mfxxLpNJoxxRTE1S+dNe+PGfbeDw2oQpoAlW9/4dwsBoqtMK i80+zr0 Received-SPF: none client-ip=212.227.17.10; envelope-from=laurent@vivier.eu; helo=mout.kundenserver.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_NONE=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: , Sender: "Qemu-devel" Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org From: Alex Bennée This avoids some compilers complaining about a potentially un-initialised [src|dst]argv. In retrospect using GString was overkill for what we are constructing. Signed-off-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Laurent Vivier Message-Id: <20221103102329.2581508-1-alex.bennee@linaro.org> Signed-off-by: Laurent Vivier --- tests/unit/test-io-channel-command.c | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/tests/unit/test-io-channel-command.c b/tests/unit/test-io-channel-command.c index 43e29c8cfbf4..19f72eab961d 100644 --- a/tests/unit/test-io-channel-command.c +++ b/tests/unit/test-io-channel-command.c @@ -33,19 +33,13 @@ static void test_io_channel_command_fifo(bool async) { g_autofree gchar *tmpdir = g_dir_make_tmp("qemu-test-io-channel.XXXXXX", NULL); g_autofree gchar *fifo = g_strdup_printf("%s/%s", tmpdir, TEST_FIFO); - g_autoptr(GString) srcargs = g_string_new(socat); - g_autoptr(GString) dstargs = g_string_new(socat); - g_auto(GStrv) srcargv; - g_auto(GStrv) dstargv; + g_autofree gchar *srcargs = g_strdup_printf("%s - PIPE:%s,wronly", socat, fifo); + g_autofree gchar *dstargs = g_strdup_printf("%s PIPE:%s,rdonly -", socat, fifo); + g_auto(GStrv) srcargv = g_strsplit(srcargs, " ", -1); + g_auto(GStrv) dstargv = g_strsplit(dstargs, " ", -1); QIOChannel *src, *dst; QIOChannelTest *test; - g_string_append_printf(srcargs, " - PIPE:%s,wronly", fifo); - g_string_append_printf(dstargs, " PIPE:%s,rdonly -", fifo); - - srcargv = g_strsplit(srcargs->str, " ", -1); - dstargv = g_strsplit(dstargs->str, " ", -1); - src = QIO_CHANNEL(qio_channel_command_new_spawn((const char **) srcargv, O_WRONLY, &error_abort));