From nobody Tue Oct 28 21:08:56 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1513142501344995.5050933849525; Tue, 12 Dec 2017 21:21:41 -0800 (PST) Received: from localhost ([::1]:33720 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eOzU9-0001qk-US for importer@patchew.org; Wed, 13 Dec 2017 00:21:37 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54836) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eOzRD-0008Pv-Jf for qemu-devel@nongnu.org; Wed, 13 Dec 2017 00:18:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eOzR9-0004R7-5X for qemu-devel@nongnu.org; Wed, 13 Dec 2017 00:18:35 -0500 Received: from mail-qt0-x242.google.com ([2607:f8b0:400d:c0d::242]:35542) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eOzR9-0004Qv-1q; Wed, 13 Dec 2017 00:18:31 -0500 Received: by mail-qt0-x242.google.com with SMTP id u10so2361976qtg.2; Tue, 12 Dec 2017 21:18:31 -0800 (PST) Received: from x1.local ([138.117.48.211]) by smtp.gmail.com with ESMTPSA id d15sm522318qkc.26.2017.12.12.21.18.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Dec 2017 21:18:29 -0800 (PST) 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=88ecjEgcsQIfCP+k/SXC4oWCMR94MxwRRYySEdUNKrc=; b=WpeZA8Mbk3LtmkrgKfGlQPiklEjtw2NLuVHZotqctAFktyP1FBc8otUinYE5ENtzSb 0w701tP2mXtkaG74zXBF4xSnB45jN39E11dhxbwwGbitIuhqfukCKwcRNoJ32URw5EwI Hipq6R5lWC8WpacXZ+Xpgl5XnVKdMvHYKd3xhEPRAh12sGIZVDfwDG5wOHRcVdRae5Ks uWrc6aW49y/oOWnGziEyLdM9f5KJd+VqkIesANauNFZabhhy7ja5Gebj4wDpCbtNJq68 XXoTFkRAOGAA/8SqYh039dphaFRPuHyRhWrMiePuHD7foABL1L3HNxOnVNbz0R+LQKau DJfw== 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=88ecjEgcsQIfCP+k/SXC4oWCMR94MxwRRYySEdUNKrc=; b=GdwWs9VPYmXtH/EhXTGjt0YmDOk/xx7RcSN5etkqIhA2us0igqt1UmXLd8sXxrJan+ ttMX0EcFwHjhMsYuuhSKebOcs+ipzJctcx2wMX2g8xyqOKpgBliwDD/TXbq57OOlGmkj GLMz8xoqVJD4hGYyv3Cqq3QP2InzP8NpQapYC1u6SMH9Z49jrD+dDgSScItdnC6+z00j rPEigAJs1cD0tj+dWRTRF6Dyf+Hf0W3EL35+ivQKjAAii4LRT0x13T+eDeW/Nny98dUa XLK1mzZuDB8MNBOUC4qTInbnA59jTqOq6CyELwCCL1YyuR6P+SLIoMelKDSSTGBTLmKM nP5A== X-Gm-Message-State: AKGB3mIWRzwbEnzrGMM0q7Uxjuwwm5FHrc7pdSpVcQco7cYgoTGk1NmW yoLOKM6l0Zr6CTzNxiCPzL4= X-Google-Smtp-Source: ACJfBov7/toeycWwkDI0N94T99j7EeZTZzKTDwNPikxHWeZX2dE2mHkqpxMk0/2S+T9IsDSu3BiCMA== X-Received: by 10.200.6.4 with SMTP id d4mr9262174qth.15.1513142310625; Tue, 12 Dec 2017 21:18:30 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: Alistair Francis , "Edgar E . Iglesias" Date: Wed, 13 Dec 2017 02:17:33 -0300 Message-Id: <20171213051736.17755-2-f4bug@amsat.org> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20171213051736.17755-1-f4bug@amsat.org> References: <20171213051736.17755-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c0d::242 Subject: [Qemu-devel] [PATCH 1/4] MAINTAINERS: add "hw/registerfields.h" in Register API entry X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-trivial@nongnu.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Orphan since afb3141c660 Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Alistair Francis Reviewed-by: Darren Kenny Reviewed-by: Edgar E. Iglesias --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 0255113470..7edfa25542 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1538,6 +1538,7 @@ M: Alistair Francis S: Maintained F: hw/core/register.c F: include/hw/register.h +F: include/hw/registerfields.h =20 SLIRP M: Samuel Thibault --=20 2.15.1 From nobody Tue Oct 28 21:08:56 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (208.118.235.17 [208.118.235.17]) by mx.zohomail.com with SMTPS id 1513142431365114.9982783840976; Tue, 12 Dec 2017 21:20:31 -0800 (PST) Received: from localhost ([::1]:33709 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eOzSw-0000wp-V2 for importer@patchew.org; Wed, 13 Dec 2017 00:20:22 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54872) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eOzRK-0008To-7J for qemu-devel@nongnu.org; Wed, 13 Dec 2017 00:18:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eOzRJ-0004Vv-BB for qemu-devel@nongnu.org; Wed, 13 Dec 2017 00:18:42 -0500 Received: from mail-qk0-x242.google.com ([2607:f8b0:400d:c09::242]:39327) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eOzRJ-0004Va-6z; Wed, 13 Dec 2017 00:18:41 -0500 Received: by mail-qk0-x242.google.com with SMTP id u184so583551qkd.6; Tue, 12 Dec 2017 21:18:41 -0800 (PST) Received: from x1.local ([138.117.48.211]) by smtp.gmail.com with ESMTPSA id d15sm522318qkc.26.2017.12.12.21.18.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Dec 2017 21:18:40 -0800 (PST) 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=VdSzwMw2HudcEp3qmf0DiKQ4iEW57X6hLtyQStbBPec=; b=pV2CeWiiwP1OQLYsI2WJqOwXfaEORgHv3FWi8CB5zFnGZoIVMAQSJpb44RaCZE8bdg ySiHkisU1zZD82Y2/FiR2CkukqPCAoZTlWszV4TQWGrIvcSGuxzNL3T8jyHJ11tzTpAy icmisWuInUKv1R53kV798BOfGoIk0eq/gyGMLnWXS7QA7BDos+8TJaXg8EuWt/mFvL6E K3+K+RbM9v7TGHYzPzSAXoS/d8xfVyX5rFiPfaNZ9s8NKnjEluykFEq67O7gj1EyuIYV zPBJ5p8CrTp1/3Y/al5egncU4G35NetmAsXGKYkKosFt0NPeWgEu/mMl4ryrUhSaG1Z6 TBIQ== 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=VdSzwMw2HudcEp3qmf0DiKQ4iEW57X6hLtyQStbBPec=; b=uF5RO4tUaWFdHRVsHk81GaSei6/paqLZEhxnlawPon84rtAXpvx6HISMdWcXlr8czE etGNRET5rBpCMTtxkEOmM605dDtunawot93j3k3pFjrFLOT1Zk8iGgWZ3RWr0tPcd/kR ZVaDxcsTBFL91QvSuzv0azMJATugG/Gs6Pu8vHCsUIO4eg+tGKSpS95Y6d14HhDXzAul SddpHaVPc9yADHhcDOPVdvQvXCLEatsTWC/HLfah29xHAlJmoVdY4g44YxtVIHM54Q7Q ZcQXYtxreN88rHaBRdMn+8HB5Ww9aa4/jhryWqb4PvRT3JvuqGJHSV1zsZN3e01KLjlC ZQeA== X-Gm-Message-State: AKGB3mJYp0h+RoO37dx3qRHx52WDuuhEfqswBOWctEBjQlvJPu2kGce5 blCqwK8PIKc+slyHdoNeOec= X-Google-Smtp-Source: ACJfBotsC/cL3CZWyW+yapnLLHp4WBvYqKFXnRtWt8U6FX/Z40VK2hpFS0USP58r2+aDXyuBIYD4zg== X-Received: by 10.55.113.129 with SMTP id m123mr9511387qkc.169.1513142320772; Tue, 12 Dec 2017 21:18:40 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: Alistair Francis , "Edgar E . Iglesias" Date: Wed, 13 Dec 2017 02:17:34 -0300 Message-Id: <20171213051736.17755-3-f4bug@amsat.org> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20171213051736.17755-1-f4bug@amsat.org> References: <20171213051736.17755-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c09::242 Subject: [Qemu-devel] [PATCH 2/4] hw/registerfields: fix a typo in the FIELD() documentation X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-trivial@nongnu.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Alistair Francis Reviewed-by: Darren Kenny Reviewed-by: Edgar E. Iglesias --- include/hw/registerfields.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/hw/registerfields.h b/include/hw/registerfields.h index af101d5ae6..ad9d7a82a3 100644 --- a/include/hw/registerfields.h +++ b/include/hw/registerfields.h @@ -22,7 +22,7 @@ =20 /* Define SHIFT, LENGTH and MASK constants for a field within a register */ =20 -/* This macro will define FOO_BAR_MASK, FOO_BAR_SHIFT and FOO_BAR_LENGTH=20 +/* This macro will define R_FOO_BAR_MASK, R_FOO_BAR_SHIFT and R_FOO_BAR_LE= NGTH * constants for field BAR in register FOO. */ #define FIELD(reg, field, shift, length) \ --=20 2.15.1 From nobody Tue Oct 28 21:08:56 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1513142593192478.7321860782828; Tue, 12 Dec 2017 21:23:13 -0800 (PST) Received: from localhost ([::1]:33725 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eOzVa-0004PQ-I4 for importer@patchew.org; Wed, 13 Dec 2017 00:23:06 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54915) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eOzRU-000085-OM for qemu-devel@nongnu.org; Wed, 13 Dec 2017 00:18:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eOzRT-0004ac-Q5 for qemu-devel@nongnu.org; Wed, 13 Dec 2017 00:18:52 -0500 Received: from mail-qt0-x243.google.com ([2607:f8b0:400d:c0d::243]:41368) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eOzRT-0004aN-Ln; Wed, 13 Dec 2017 00:18:51 -0500 Received: by mail-qt0-x243.google.com with SMTP id i40so2309139qti.8; Tue, 12 Dec 2017 21:18:51 -0800 (PST) Received: from x1.local ([138.117.48.211]) by smtp.gmail.com with ESMTPSA id d15sm522318qkc.26.2017.12.12.21.18.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Dec 2017 21:18:50 -0800 (PST) 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=U6gof/XJsJReyCTae3lSRrNSYR33AmUAylXstgPqJ6I=; b=IqgoZVW1gwHJuBuFq5s2iU7T1MMRasLGpAaIvMHgxMV0zpRAydXHMbPnBW7GNjxJux EHDqNAtYsHX/8BXve6HjkaBDZw4HfFpSOLA5fNDT/Jkfn/CRVnMrTiRHrDUH7UnUwnS/ fo1tWjzOVQ5aNuUrtpfgeb+1hS3IV80Abkdp//c54EaAe+H6UVvzGSilXm8mM/3HCy4m SpiXex635WaPnuIAGMo4GiJGKZzolVIM7fI3EgZWwi4UBlAyU0QPEg4w1gHdiewaZD7M qKrSa1m1RAlVmhtaSPsYmNCfH6QsqeOM18q75v2hDjXs5Nk3C6i9+/7zeTEl2pSJ2UhQ oCgA== 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=U6gof/XJsJReyCTae3lSRrNSYR33AmUAylXstgPqJ6I=; b=Z3ZvbJmbW+yBfO0AgPmD55VKW6hEFjFzkGU7+BAJ7K8kxajQ2iQRyLMAWo20EbLLX/ HvOwqkZLyBSw9yrLZqsT4AUds8mU3oC7dc1TWt+0ECTJaA6rcwSRsZw8PvYCxdIuCyAM 2L1ut/EPnVXkQVM3fY0oA/mHiQkYZBF6EtfJ9S6NL1AybsFapIoJYBAwyHv/7oRZM3/r pRm2rZGUY5wrsBm3+iXdzWwYlQBjnioRa/6H1DUEN/aXqRLXbfyT5aZvveekcff7QX9m cJlbj83YQllQowNcNO7h7rYrSxWzbF/oNOrmh0ukJ31JzotdIvH6ZhQz/g0fq4Ki82Mv 56Vw== X-Gm-Message-State: AKGB3mLWlKGu8eBAnfA+iBy62J+Hg9TmSPkUvPuTWd7IwnjnwApgCgJ1 VJHWbr+j3+jYPanW5RIJzJtHNGRw X-Google-Smtp-Source: ACJfBosXEbRfViG4MVyZVPnN55nHSUez0AKZPllELu68OYKQrtGKiKG9nHYDuKkAUuHwEbBl/tXUFw== X-Received: by 10.200.38.33 with SMTP id u30mr9690926qtu.197.1513142331230; Tue, 12 Dec 2017 21:18:51 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: Alistair Francis , "Edgar E . Iglesias" Date: Wed, 13 Dec 2017 02:17:35 -0300 Message-Id: <20171213051736.17755-4-f4bug@amsat.org> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20171213051736.17755-1-f4bug@amsat.org> References: <20171213051736.17755-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c0d::243 Subject: [Qemu-devel] [PATCH 3/4] hw/registerfields: add 64-bit extract/deposit macros X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-trivial@nongnu.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Alistair Francis Reviewed-by: Darren Kenny Reviewed-by: Edgar E. Iglesias --- include/hw/registerfields.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/include/hw/registerfields.h b/include/hw/registerfields.h index ad9d7a82a3..f59e7f47bd 100644 --- a/include/hw/registerfields.h +++ b/include/hw/registerfields.h @@ -35,6 +35,9 @@ #define FIELD_EX32(storage, reg, field) \ extract32((storage), R_ ## reg ## _ ## field ## _SHIFT, \ R_ ## reg ## _ ## field ## _LENGTH) +#define FIELD_EX64(storage, reg, field) \ + extract64((storage), R_ ## reg ## _ ## field ## _SHIFT, \ + R_ ## reg ## _ ## field ## _LENGTH) =20 /* Extract a field from an array of registers */ #define ARRAY_FIELD_EX32(regs, reg, field) \ @@ -52,6 +55,14 @@ d =3D deposit32((storage), R_ ## reg ## _ ## field ## _SHIFT, = \ R_ ## reg ## _ ## field ## _LENGTH, v.v); \ d; }) +#define FIELD_DP64(storage, reg, field, val) ({ \ + struct { \ + unsigned int v:R_ ## reg ## _ ## field ## _LENGTH; \ + } v =3D { .v =3D val }; = \ + uint64_t d; \ + d =3D deposit64((storage), R_ ## reg ## _ ## field ## _SHIFT, = \ + R_ ## reg ## _ ## field ## _LENGTH, v.v); \ + d; }) =20 /* Deposit a field to array of registers. */ #define ARRAY_FIELD_DP32(regs, reg, field, val) \ --=20 2.15.1 From nobody Tue Oct 28 21:08:56 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1513142528614739.2062073562859; Tue, 12 Dec 2017 21:22:08 -0800 (PST) Received: from localhost ([::1]:33721 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eOzUd-0002Am-6X for importer@patchew.org; Wed, 13 Dec 2017 00:22:07 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54953) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eOzRa-0000BV-WE for qemu-devel@nongnu.org; Wed, 13 Dec 2017 00:18:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eOzRZ-0004eI-Py for qemu-devel@nongnu.org; Wed, 13 Dec 2017 00:18:58 -0500 Received: from mail-qk0-x242.google.com ([2607:f8b0:400d:c09::242]:37110) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eOzRZ-0004e9-LF; Wed, 13 Dec 2017 00:18:57 -0500 Received: by mail-qk0-x242.google.com with SMTP id i130so584603qke.4; Tue, 12 Dec 2017 21:18:57 -0800 (PST) Received: from x1.local ([138.117.48.211]) by smtp.gmail.com with ESMTPSA id d15sm522318qkc.26.2017.12.12.21.18.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Dec 2017 21:18:56 -0800 (PST) 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=mxhooxRP6D79PhQsASDOKeJRzpNGCSz4Xd1Uu5VCMq8=; b=pec2CduFDstcA6PMjr6Dw039dZPVVSB33dl8QX9Sbyq9oy58ZtXCcbkl04wu1W5GBp 8kzG8eHzRuPyCVDfrsD2PbIKmUDYZGIKA8wlfke786PvDA50uJ6XNWJg0P+AeI+CUd6D qOPa+3samk0ejlKQt/RsJqqThAPuKkHSJ6tJ7YNriUe8ZpD9DkbAmOQj0ry7cFkufGkz NDeAuwcv4bszioy4YQnBlP3+G5Mra4BKm7RsmilYwxXS/4gnpg+ntyQsd4Nh9I4dbhGW gG2Vy8ZHVr4dEwRrrR68hQPhdCN+0X6cSx2t2Wc9WJpRibvT5e4UvyClqBFyn5hXZXzB rpzQ== 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=mxhooxRP6D79PhQsASDOKeJRzpNGCSz4Xd1Uu5VCMq8=; b=Im/4Or4yvDla8bzAUBbLgPAd+pXC0Df97dSggEyrd816pLdK+5qaHYTP+ONzoZPU10 zQIF/2yoATqrnlHC0cCJXmfh6WAL5v2h9z/yAhDM9AF9qgtWpYR16ysUkPei4qj5Ur0r qWgu7v2W1RT7TChjuK2Quel9IElVMmQt4huwtlnGd1ghA4YvP4FU3LOWQJRVC9ZFdv04 U65lSp46L0r66FXjQPAdN9YcjXMExXpD1k7CDOZowVkMkasn7emo+V06io1E8wXJiUMy AiLFOkLfhSzlJnl/o1IFs4Epa4YwDGzZRbn7N41RMSwI1h5L/M9s2Tq7vndu73rX6oz9 vQvg== X-Gm-Message-State: AKGB3mIF+KOtX7HCF2f4HfujF3Md/oY7FQVi6Sh/bCshgnR1DJQanDgU HdKNVW1CluXAi4F3woCM9mc= X-Google-Smtp-Source: ACJfBou89/3Jg2uA/MFLAKzf7cpyyvI9DTDT0O2fRrM5p251wujHGuqojX0h+sv36fe550oBuS08IA== X-Received: by 10.55.21.18 with SMTP id f18mr5161208qkh.257.1513142337243; Tue, 12 Dec 2017 21:18:57 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: Alistair Francis , "Edgar E . Iglesias" , Eric Blake Date: Wed, 13 Dec 2017 02:17:36 -0300 Message-Id: <20171213051736.17755-5-f4bug@amsat.org> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20171213051736.17755-1-f4bug@amsat.org> References: <20171213051736.17755-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c09::242 Subject: [Qemu-devel] [PATCH 4/4] hw/registerfields: add missing include X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-trivial@nongnu.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 This allows to use this header in qtests. This fixes: CC tests/test.o include/hw/registerfields.h:32:41: error: implicit declaration of functio= n =E2=80=98MAKE_64BIT_MASK=E2=80=99 [-Werror=3Dimplicit-function-declaratio= n] MAKE_64BIT_MASK(shift, length)}; ^ include/hw/registerfields.h:39:5: error: implicit declaration of function= =E2=80=98extract64=E2=80=99; [-Werror=3Dimplicit-function-declaration] extract64((storage), R_ ## reg ## _ ## field ## _SHIFT, ^ Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Alistair Francis Reviewed-by: Darren Kenny Reviewed-by: Edgar E. Iglesias --- include/hw/registerfields.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/hw/registerfields.h b/include/hw/registerfields.h index f59e7f47bd..44e0b94edf 100644 --- a/include/hw/registerfields.h +++ b/include/hw/registerfields.h @@ -11,6 +11,8 @@ #ifndef REGISTERFIELDS_H #define REGISTERFIELDS_H =20 +#include + /* Define constants for a 32 bit register */ =20 /* This macro will define A_FOO, for the byte address of a register --=20 2.15.1