From patchwork Tue Apr 4 23:40:11 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Alistair Francis X-Patchwork-Id: 9662743 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id E2E956032D for ; Tue, 4 Apr 2017 23:44:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D46452850D for ; Tue, 4 Apr 2017 23:44:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C6F6E28527; Tue, 4 Apr 2017 23:44:41 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 2B6C02850D for ; Tue, 4 Apr 2017 23:44:41 +0000 (UTC) Received: from localhost ([::1]:38075 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cvY7s-0005fw-C6 for patchwork-qemu-devel@patchwork.kernel.org; Tue, 04 Apr 2017 19:44:40 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48844) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cvY6C-0005A4-3H for qemu-devel@nongnu.org; Tue, 04 Apr 2017 19:42:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cvY68-0005dR-TW for qemu-devel@nongnu.org; Tue, 04 Apr 2017 19:42:56 -0400 Received: from mail-by2nam03on0066.outbound.protection.outlook.com ([104.47.42.66]:60256 helo=NAM03-BY2-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cvY68-0005dH-Ij for qemu-devel@nongnu.org; Tue, 04 Apr 2017 19:42:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector1-xilinx-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=/MXKIOIyB/exzBsnd2tZiNu7H2GPeKjHzUMMJGMtvAU=; b=s6CgiKyfYxYVpW6Ig3tlY3RmMGaq7od+LTxXXaXl0ecsxEXaMghMJRU1lMKcpIt7QDlaR4Pzx34mzYkXLTQrDTbgyBDyZ8sC0Q8zvTZlRrEVbZAKRB1Oac+xH6JsWDUcsZVaTXQBoyrNP2lR9fLkcZUXPVtdXYwML9cbBXxboME= Received: from BY1PR0201CA0010.namprd02.prod.outlook.com (10.160.191.148) by DM2PR0201MB0733.namprd02.prod.outlook.com (10.160.94.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1005.10; Tue, 4 Apr 2017 23:42:47 +0000 Received: from BL2NAM02FT042.eop-nam02.prod.protection.outlook.com (2a01:111:f400:7e46::200) by BY1PR0201CA0010.outlook.office365.com (2a01:111:e400:4814::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1005.10 via Frontend Transport; Tue, 4 Apr 2017 23:42:47 +0000 Authentication-Results: spf=pass (sender IP is 149.199.60.100) smtp.mailfrom=xilinx.com; gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=bestguesspass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.60.100 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.60.100; helo=xsj-pvapsmtpgw02; Received: from xsj-pvapsmtpgw02 (149.199.60.100) by BL2NAM02FT042.mail.protection.outlook.com (10.152.76.193) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1005.5 via Frontend Transport; Tue, 4 Apr 2017 23:42:46 +0000 Received: from unknown-38-66.xilinx.com ([149.199.38.66]:33821 helo=xsj-pvapsmtp01) by xsj-pvapsmtpgw02 with esmtp (Exim 4.63) (envelope-from ) id 1cvY61-0007nO-Lb; Tue, 04 Apr 2017 16:42:45 -0700 Received: from [127.0.0.1] (helo=localhost) by xsj-pvapsmtp01 with smtp (Exim 4.63) (envelope-from ) id 1cvY61-0000ip-Cd; Tue, 04 Apr 2017 16:42:45 -0700 Received: from xsj-pvapsmtp01 (maildrop.xilinx.com [149.199.38.66]) by xsj-smtp-dlp2.xlnx.xilinx.com (8.13.8/8.13.1) with ESMTP id v34NgbKR002039; Tue, 4 Apr 2017 16:42:37 -0700 Received: from [172.19.2.220] (helo=xsjalistai50.xilinx.com) by xsj-pvapsmtp01 with esmtp (Exim 4.63) (envelope-from ) id 1cvY5t-0000hH-Gy; Tue, 04 Apr 2017 16:42:37 -0700 From: Alistair Francis To: , Date: Tue, 4 Apr 2017 16:40:11 -0700 Message-ID: <07368f466735c951eaf53605582085cc7c5feb9b.1491349058.git.alistair.francis@xilinx.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: References: X-RCIS-Action: ALLOW X-TM-AS-Product-Ver: IMSS-7.1.0.1224-8.1.0.1062-22984.005 X-TM-AS-User-Approved-Sender: Yes;Yes X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:149.199.60.100; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(39850400002)(39400400002)(39410400002)(39840400002)(39860400002)(39450400003)(2980300002)(438002)(189002)(199003)(9170700003)(50986999)(63266004)(9786002)(47776003)(5660300001)(76176999)(33646002)(305945005)(77096006)(189998001)(118296001)(356003)(106466001)(54906002)(5003940100001)(2906002)(48376002)(50466002)(36756003)(36386004)(50226002)(81166006)(8676002)(2950100002)(4326008)(38730400002)(8936002)(6666003)(39060400002)(107986001); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR0201MB0733; H:xsj-pvapsmtpgw02; FPR:; SPF:Pass; MLV:ovrnspm; MX:1; A:1; PTR:xapps1.xilinx.com,unknown-60-100.xilinx.com; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2NAM02FT042; 1:7ytpJCyvYPF1/2FnLojPUxMdBmTdfjyt7FDDECRcXY2NInCIWrLw6+HBFhE/W+kqGzXoc7C1ysIdUNvufbr0gZHbcHJLYA+u4bS9ExMyPVIAbSUDvrFp5BTLxsQcjOeVYzn2XrBsnzUEBJDyCb9tULBoElK+w+r2ShoVrDjPXBmAhNEqAr0RBYEu+Lpk/ylFxUHHkpYMQE9/8k6GhoGXa/fXhwfLnCTb6S2zChcLNe+678fgDEGT+8Py9vk7iSUG/B17929c5Go/VhzCVdI1FFyW24eZ/nlNsncjsCsg9QbdGgGkM426jxfsxduJsv38XOYssKF3S5RIeor+S90iQ/KuG37hYqup84OsYmN2w0yi0qyBMbseaAGnYf2hp1SRgcmoWJa/SUddtzHt9RX0E7ihyAzmcptdHsRyr8/rzmQedqHvH2dVoNmoteB+OCSA9yz5pR7W69fQPIUhD4/xfZaGvTt1TTCfHJxYp2tWR8uhhIDw8ntgD3Qba7ZQ1n5Sn+YllaOsUPmXZUZjSV3NCFoso8ZnkziGnH+JzzTGqUT1Ei5Ph9S8qBCPQ8RZi9hEF3MG6VwpwT2cOJw+Lr2+dlEC+Te7FJClkKyMVRcNLqY= MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 921bd646-b38a-4d53-df60-08d47bb44bed X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031133081); SRVR:DM2PR0201MB0733; X-Microsoft-Exchange-Diagnostics: 1; DM2PR0201MB0733; 3:7WYLhSPPxKvphdKTFGSA48OwWAScO8o4fGUMcltkZL0JVpKjE548qyNDLb7S7bfiekZ9GBNiaGsprniWnSzryOTM+PqM3tL70Qgs9a3ZFd71ZPjVj+iW8W7WK6z5Pt/Pc1InRqpfxoLreWsreyVnS9OmT8VqDIbcsnb4l5A2qUIKpaOEPGaU6mSnhvzywWEwQv+Qf7TC9O0pbbORDKsGSklH6tOlCkeZBJxFNEqN4dBqTL3QkjozTR4g8DJTutXUAJJwIggpXfqeyfr8gMca4BQb7d3oiNt7URZVSiWGcL4GJ23/a2q3+tTg8oLMO5HAUbptzKu3BzXhA8d96Ee/4LI/5AMJx9sxGi5v4cz+Vyy43G5gzMTc+0y7Lh10U6cxy33o+0JlxiqcXBH3oOMc5syPuFF5w8j6P8A5iea4jijiJ8T6MM2AV0B9m/JbYDc+dU2Xkq7KjsuXci0fe8saQWwSwGYrBGRuwG3qAooHm96H1wvgj2dNpVADeP8Hn8mh X-Microsoft-Exchange-Diagnostics: 1; DM2PR0201MB0733; 25:kYrcDVe4JBjyjEBEzqhz6O5Qmd8JG1xzooQoRAvojH5z+wCCi93AKHjqyrd7/J1Laz7sbI71Q1Mo2ZKwCANfKatgnwkcmsowF3Iw6Lig5EbUvy1w434imVA5vRpKyVbK1l5j6szfokdJxcgz9Hs1n8f6WbrsrvJwJEWQmF1L0wKdGtzFN/iag6cOsFq34XGazCSUcJeHz171++vdSjO30GjDY5OHWcERqmIKgkdrXHsY+9ZIkwuqzG9nsongYjeZ+xeWP7vruGMArnTo7PLAqayNhmsCTzwtUbI+3PeGqZrd8L06ckz9CBVZSAdxPxUfgNXQyOcpGXjY00Sc9A7GFVP1MiRtZ+GQDWLC0qYdfPQNVeCZ/WbUdNrQSO+fBtLzdOj8iWozV1dEbY2F8Ifus1l9BI9+3cNL0myVccnJxFpOuvRuJdOvy9TvCh24wcGAtto3h5Yi8k9WmFGlEU3Fmw==; 31:xO87qVOA9I/18uB11JOH0yJrXRN+Fvr30vonVyxBidn7kbUU+uEkIFs3uv1f/63I+YYB4Ak+gujdlbPkHyjEd6Kjp7XUF6so8HiZABFuI4MlUZSOpXvWRBPrZKhRpQo9LXJc1W4PFRWmRYkj6jRyNBYZcKMkauCseCU/dnT6sKVIbNFtABVc5zGCe4lh+FpaNQM6gJC2LSr6CgIH2fe9TY5hYsVi8d1Tx7F5ZNvwySZi4z50R7SiKg5Wl97ZY4TaigK4aOxbNc+5XpsfN84pyvlHHRpt991C3skg+qcgrH8= X-Microsoft-Exchange-Diagnostics: 1; DM2PR0201MB0733; 20:DokKeb7Y9Q4R3o1crJvf/deGDyxJ9Q4VEW3qq84C4k/21ZK1Oj/T0N7hbqwsM+5HUN6pDgFtcpM7bGqukzTEXlC9k910/PdsYZqzR79QEWvb/Bxs/NRUfUIDmGmuNtjhFUfSAvH81RkQwW3y07AQLNB8fDbtnc3K6VS0MVg7Ynh0afWOjaex94+BcdmUxNnoLTrgqRW90l+Knl2vNAkcWBsJDXgFf2jnnPP3R7A/3IU9XLOrE8lObeXpaI07EqmAy/UUMTUwsx2NYmiZpu/wpcm2gzzatlGoFVtbbkFpI51tYPzaV0zGDQY9NOSudEupfV+k2nEg7+NGrMZ4ORx6ZK971DzEGx2SeZEo85m96+LOieP1aasJ1j33x4Ua7iOxMBOwsEoEgy6Un9ZtJHrRSziypPw2P1OxOX7vusd1jqvCXRdO3v3Ipw8J0dNqxLeycpuxzA4B+41/8eRgi6dIZoy7KbqdAOZsAzYg6/jZMVoPMukJ3H+fJOvb6VDYUVia X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(192813158149592); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(13018025)(13024025)(13023025)(13015025)(8121501046)(13017025)(5005006)(10201501046)(3002001)(93006095)(93004095)(6055026)(6041248)(201703131423075)(201702281528075)(201703061421075)(20161123555025)(20161123562025)(20161123560025)(20161123564025)(6072148); SRVR:DM2PR0201MB0733; BCL:0; PCL:0; RULEID:; SRVR:DM2PR0201MB0733; X-Microsoft-Exchange-Diagnostics: 1; DM2PR0201MB0733; 4:EWcrfYnerpxMvfrbJ0FtmuhTGty/UPHenZWm2y4NYr4mdukSqQy9c29x0xmlTAMC2V/pFc7J/W4EI2hokQPibAUXk2zvCYfI8WhY+Q7Xg9hycngD5ZjOsbfCsjIFVBEVsqgq47UgrkY19QFa1iTSbaYzHdB8cZe+Vm5K944RYQGxP0iRnkLdC15/ngptboG2dZDr8MZQaWfilxBLDtXALCzKK98bEw/AOibgKrCQRY0Sk8eU72r9T8WsMYaJORceb8F8o1DB1XM4jYHA0lhXYfT0jJ7zSPm1AdyXamUIOOK8wM7PiYhtutzR4kRiu1+IHwVQ4YbBWcUCIWvH8sWSLzUAE6Eg3Vigu135FR2cHNjSEItvFhnQGtmcRkpi3JygFGD6EiMPZ9EWEVwyqAxxAeCHzZxzkmptOYtEIw++vtJfYxdJ/pXxJv6RjvjPYZC8Zu6hHsZxtfUkzxEbGk3j1h0N5rjrvoSPMP0mjM90YhldF2mIZK+dS7Ck3jKbVN7QQ6b/VrsngqujoWFNHNf4b+YDMJ5e8GDWEB+vrpaybzAalD5QPtUOXw8fvRT9dlYyAhUws8GaOPOwAUa/DKl2Vi6SB9sYaf2nwFfYw6RpqkjQsbMOlnc8PfR4BMV78Oi0TiGn5O2yYvT0aXSUIKSAccN8FEg25bwWARwzhl6CEyAo0EAvWiaIqlC1AkC3U3BB8nO+nyMNz/2S+fVYXJdkNRAIOA7V7MG85o9il7xaD3iQkrC7tOGStZaCiLyHBvr6hO90EghXDZbbE54VgvuxemgfiE8Hq0oGpGDefhmCAY/eoH0/GRJCaToaIt8LKDDovfO4SBJ9rHA2rSd5icfD7vPPEW6bPNDt1PoqaWKmGXxzqN0TKFB3CfZneezhkWJq X-Forefront-PRVS: 0267E514F9 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM2PR0201MB0733; 23:OmF+vgMIRERt0e2gr6sAwDxWm1/mK53so7i3Lr0?= =?us-ascii?Q?9bUKOeXai4r0WITc5bvIFo2CW+sF2a30ohGn4Zpr8FFTP1U57am/9ZGB3r2F?= =?us-ascii?Q?gF/jRKm7b4s99AEqh0WKKndwbDVPw6ckxM6+Bg7caSuTRbxqQZ4jBUHmdSKi?= =?us-ascii?Q?GplZngQy+jtTURjqTPB8W6zy8vyQaIAzsecI33LLU/TAT90TCLsTVTQzDlmB?= =?us-ascii?Q?+d/0EUPA503vfvb8yX9AZu/6QT6nNWbkmd14Y+zFQ8J7fZzJdPjw9WT3tVQ7?= =?us-ascii?Q?yOd6+jLJmoVkb2CH527psY9XNHwZHDsUXYG7MRtOQb8RZi4HHo5IqXACwa8z?= =?us-ascii?Q?kOaBzvoNmyS6grzrLuUC3q3eojCAxZYWt66TooUHzRZGmXGjlNVGjZv1KUly?= =?us-ascii?Q?/1eXU642M1gm7tO68h0Af3ePaRcIe65+JWBZHGEU/JJbRckjqu/Lm3zGooT0?= =?us-ascii?Q?ZxwZQ0IntFMCrrWpTBR+VNYEAfIR7TSxnt8hvAagAdgOEdfJfheKVoIX3kX0?= =?us-ascii?Q?u7I2LoK1LLCciMCDaPA/KbXNdJwhkxKVtuf8kGv5Rh8Zgq3rt5fLR47j2bOC?= =?us-ascii?Q?JiAJXUgraGNbWUHuTeoFJlFLOJGDdERzwN8uMq0o5AUR7j8OXsVyxFBQ8YBH?= =?us-ascii?Q?AV9xhDPNu5/Ta+7z9U0Trw5BntD2FN7uQTOrV6Bktzux4EOq/zRka0aaYLHz?= =?us-ascii?Q?gp97amDkTHC2gRLoVwPSATvpB9yd0RKktGwoLaIVIbdpYQTtNx/VEjRcCcO2?= =?us-ascii?Q?jtpD8xF52vPX3tEjBVHroKbUtZuDVVETEwyreRvXODlmDlJSXEQKQlrVAxmV?= =?us-ascii?Q?gFN+pxBvc5nRtSm+rrPMDfWmOILEwJfSSt5b6NHKzvS7MCDG/YDoVG/20IP4?= =?us-ascii?Q?YqrsIFY4pnvBWViM0ISXWvRH5WfUbp2y2eru7n3daszUwgzcAHrXhwULNx54?= =?us-ascii?Q?WksKpPpIcEbSvqjHE0AUtm1W7P6fw0UpfOtx0/tYHuZ+ss1SBcBeg/VobFvl?= =?us-ascii?Q?h7252e6MuJoRc1SmwHBq5CniFvxz3pAErthzcoOpW8La7SaxMHMgvwR4AE+J?= =?us-ascii?Q?+gFglrBvLdlgm5eWpZECWT54Dzxcu?= X-Microsoft-Exchange-Diagnostics: 1; DM2PR0201MB0733; 6:YODSnGdTc0oDSuIilc6yqaMxGEpvnkV3ho8hjO5tGW2LXtvuluo68RCELTjfRJEGJ5ZW+N1bU+NxymtQVJNQxKmpgHgNwShL/VXjxoDONYyWVHi2+EEXgtZxtIV6vwpWP+q+uNskPhfJvFwHjpyPY18wi8EO8sgr2cqtgi7vjgM4S/fklqtqPXJ9p60ZrEoUdIfABIUfqTGeaRfchxyZHbuBNP4dxIwg3Nnrx2oLFkas+DFg6pEmjA+KM524C3KGUN6lqrMNdXdiRxnbkPso7BEZgfEkrcVowNkW45ISBo2zlamIVL3rbrq+GBuAoB65ZUZF/H4Z8aNJQkwKvWWN5b0OIQzhKEy5KvNRG838OHWB7adRDm3X9nf+s4eikKGXus4qQLI2GrrSEs5OfTmNBw+xSrjvHBiu1OT1jZevaYo=; 5:5sWEp+k0xzEJSn/SdN38tuzW9Cv321TAAmAcLAjUtlVEsXNj3ZAyTfSva2XNtDCw1+TcMb1RGSrSWAqWSY+/SIdHZFSoP8aiOszNFXJAI0Nran67Jufb6NWHHz4xX40nwlzspMz2C5AlG4S3amZH8g==; 24:W0LVJnAvPHtv94w3pcMoHZ5d6PbO5D70V7uOrSBfvtLDM29CIfniH3PMYnWTRtVbZy1tL0LVGGTNkvhVmsDQQbcvJELM7YRllJtkXEyfbTg= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM2PR0201MB0733; 7:xIRXnlihEWjK41BmSehymUe4KsK2KhrMn21Kglu5wFhkXjdQPX4suNhncmCqhKZrTnuAwCQ5u+fLk/q7e0s5AmQqUu49O7mZm93w6OCAx16yd6uEEcQSd43rb4m3Rmz3bHS90208ovq+/0dVLsRHHh5QM18BGUdUsDeH0vgLyhFNILrftBCXkK1W/vk15rSKSkN6hAf/3chjRR4ZCRY6/kGKCNmOQAbewa1sZzMRRrO7T5t/2KITQx8IOFwR4mJgoIRdnyqEmy0EZ8KTVALsfBrr60uSgKzcl4hJGe06sxQDgC8yxUbimeMSL999KNImsYo0Zi7e9JMvXnnumLCMYA== X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Apr 2017 23:42:46.2573 (UTC) X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c; Ip=[149.199.60.100]; Helo=[xsj-pvapsmtpgw02] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR0201MB0733 X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 [fuzzy] X-Received-From: 104.47.42.66 Subject: [Qemu-devel] [PATCH v1 4/5] cadence_gem: Make the revision a property 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: alistair23@gmail.com, alistair.francis@xilinx.com Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP Expose the Cadence GEM revision as a property. Signed-off-by: Alistair Francis Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Peter Maydell --- hw/net/cadence_gem.c | 6 +++++- include/hw/net/cadence_gem.h | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/hw/net/cadence_gem.c b/hw/net/cadence_gem.c index b9eaed4..7047e02 100644 --- a/hw/net/cadence_gem.c +++ b/hw/net/cadence_gem.c @@ -300,6 +300,8 @@ #define DESC_1_RX_SOF 0x00004000 #define DESC_1_RX_EOF 0x00008000 +#define GEM_MODID_VALUE 0x00020118 + static inline unsigned tx_desc_get_buffer(unsigned *desc) { return desc[0]; @@ -1213,7 +1215,7 @@ static void gem_reset(DeviceState *d) s->regs[GEM_TXPAUSE] = 0x0000ffff; s->regs[GEM_TXPARTIALSF] = 0x000003ff; s->regs[GEM_RXPARTIALSF] = 0x000003ff; - s->regs[GEM_MODID] = 0x00020118; + s->regs[GEM_MODID] = s->revision; s->regs[GEM_DESCONF] = 0x02500111; s->regs[GEM_DESCONF2] = 0x2ab13fff; s->regs[GEM_DESCONF5] = 0x002f2145; @@ -1512,6 +1514,8 @@ static const VMStateDescription vmstate_cadence_gem = { static Property gem_properties[] = { DEFINE_NIC_PROPERTIES(CadenceGEMState, conf), + DEFINE_PROP_UINT32("revision", CadenceGEMState, revision, + GEM_MODID_VALUE), DEFINE_PROP_UINT8("num-priority-queues", CadenceGEMState, num_priority_queues, 1), DEFINE_PROP_UINT8("num-type1-screeners", CadenceGEMState, diff --git a/include/hw/net/cadence_gem.h b/include/hw/net/cadence_gem.h index c469ffe..35de622 100644 --- a/include/hw/net/cadence_gem.h +++ b/include/hw/net/cadence_gem.h @@ -50,6 +50,7 @@ typedef struct CadenceGEMState { uint8_t num_priority_queues; uint8_t num_type1_screeners; uint8_t num_type2_screeners; + uint32_t revision; /* GEM registers backing store */ uint32_t regs[CADENCE_GEM_MAXREG];