From nobody Wed Dec 17 06:05:31 2025 Delivered-To: importer2@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+importer2=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1673519391; cv=none; d=zohomail.com; s=zohoarc; b=SoQ+YbUhG6eQ7mZJ31Yafcw6SzOb+MT3fUMd0DVHSv4OMvnalIlNslpgWk7V2zxZjdvaMz9Jc+uuUNt1+5Dg4WYPISYlF+VGGxT4psvmbIr7rKOtJ0XmwsVjvVGYuPnAS5y0pDwNFkJzPLg2z1qyfTBWVh2EUNJQXn3Bq6FzqzY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1673519391; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject; bh=DfHbFzEFpZAIU4LZ6NgwvgYjQ8+Nr9IG/Jg0A+8VsYk=; b=nyvVX/F4bkHftsd1j4T3qwK+d4EJ88B+Hf5KEDDwbthw6WurcOnY610CI9/EExJRlczV8WpfZlHRzuhWuI2ypLQB68Jyle/IQFcW86Kgh/XlfMcLV9w4eRO/rr16EIrhJCWxZf7DHPGKjypVW4RaxvX+ngH4JL4sCLS96q7qZV0= 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+importer2=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1673519391921978.4317527832405; Thu, 12 Jan 2023 02:29:51 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pFuMC-0003U6-QK; Thu, 12 Jan 2023 04:58:48 -0500 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 1pFuMB-0003TG-4X for qemu-devel@nongnu.org; Thu, 12 Jan 2023 04:58:47 -0500 Received: from mail-pj1-x102f.google.com ([2607:f8b0:4864:20::102f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pFuM9-0004OK-GX for qemu-devel@nongnu.org; Thu, 12 Jan 2023 04:58:46 -0500 Received: by mail-pj1-x102f.google.com with SMTP id q23-20020a17090a065700b002290913a521so779589pje.5 for ; Thu, 12 Jan 2023 01:58:45 -0800 (PST) Received: from alarm.flets-east.jp ([2400:4050:a840:1e00:4457:c267:5e09:481b]) by smtp.gmail.com with ESMTPSA id k13-20020a17090a3ccd00b00219025945dcsm12095450pjd.19.2023.01.12.01.58.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Jan 2023 01:58:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=daynix-com.20210112.gappssmtp.com; s=20210112; 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=DfHbFzEFpZAIU4LZ6NgwvgYjQ8+Nr9IG/Jg0A+8VsYk=; b=q/u9MU41Ym/nBzHy0ljHh7SeGpldDiVkOh8vbPoLl/sc4f71cTnH3WrD6LWBF9suXj eknMom/Ccu5JOfTwO0QEGfcZK44G4kCIKCZcxW7CoubRIClW7LCGndEI/7vb8BLK6fQh OLWsddaA7b/kqNgiGYL8i5w/sXtJ9BkwWcCpSht3Ef7zAn+e1ozoV0js96S6t2lETEqf NIXxSyUwEfAAfO2OQHCUAt9i+34OX4Iyj3r9iHDxNt4EsvCApVgnnBXctlDEUU/dLmRE ODNa8yHK3ATyckVtIALr5g8Y91a0GY3j/m9W3VSM+Ilnp7PrXJj1U6LxT5uoTtZRosbt uTfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=DfHbFzEFpZAIU4LZ6NgwvgYjQ8+Nr9IG/Jg0A+8VsYk=; b=IyPuLUw44LBEnuHeAOawuMtdxXuyHGaUN0u93UHhQ41fnhFGwy32rG45RKABSC5rbj HtNN+Hbu23MqPj7G8H5WEd4HX9JROg/qYYqmnR1qJkokNJZSMHEPpl5Zih/El+UWOMwP d05OfUlixgTYZKfDGKUtZ0ddReH3wQflpMfUtYAvIxmvE6k/0h4aCMeJz7Pm/Uy4gbnI z5EKX/8e+uKbU+mDz1De2qdubPAU3/WVS4SZWah441Jir+evds1ffrDfwwVz/EjC332c 5PGnNxw9qJcPne9EoIWX7jTLtNsiWPQG1bkbr+eht914sTY6f51YB/LBOtMfeXi/250B n9IQ== X-Gm-Message-State: AFqh2kpsl96IGTlQQQkmw7gPMX2+6TEP9jsis2+psvJKml0uGA5Kf/Du roJpAs66s6Odwe8zruY8JKEvyg== X-Google-Smtp-Source: AMrXdXviiaFrx9c2QVYJ0LGGFMBvu9pAG/yBxhmvfCUuVLQXDiQXzI7HFcAUc24EZEVTmrlceyabCQ== X-Received: by 2002:a17:90a:5d08:b0:219:4578:6409 with SMTP id s8-20020a17090a5d0800b0021945786409mr78839507pji.41.1673517524871; Thu, 12 Jan 2023 01:58:44 -0800 (PST) From: Akihiko Odaki To: Cc: Akihiko Odaki , Jason Wang , Dmitry Fleytman , "Michael S. Tsirkin" , Marcel Apfelbaum , =?UTF-8?q?Alex=20Benn=C3=A9e?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Thomas Huth , Wainer dos Santos Moschetta , Beraldo Leal , Cleber Rosa , Laurent Vivier , Paolo Bonzini , Alexander Bulekov , Bandan Das , Stefan Hajnoczi , Darren Kenny , Qiuhao Li , qemu-devel@nongnu.org, qemu-ppc@nongnu.org, devel@daynix.com, Yan Vugenfirer , Yuri Benditovich , Sriram Yagnaraman Subject: [PATCH 10/31] e1000e: Use memcpy to intialize registers Date: Thu, 12 Jan 2023 18:57:22 +0900 Message-Id: <20230112095743.20123-11-akihiko.odaki@daynix.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230112095743.20123-1-akihiko.odaki@daynix.com> References: <20230112095743.20123-1-akihiko.odaki@daynix.com> MIME-Version: 1.0 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+importer2=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: none client-ip=2607:f8b0:4864:20::102f; envelope-from=akihiko.odaki@daynix.com; helo=mail-pj1-x102f.google.com 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, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, 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: , Errors-To: qemu-devel-bounces+importer2=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer2=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @daynix-com.20210112.gappssmtp.com) X-ZM-MESSAGEID: 1673519394125100001 Content-Type: text/plain; charset="utf-8" Use memcpy instead of memmove to initialize registers. The initial register templates and register table instances will never overlap. Signed-off-by: Akihiko Odaki --- hw/net/e1000e_core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/net/e1000e_core.c b/hw/net/e1000e_core.c index 6a4da72bd3..87f964cdc1 100644 --- a/hw/net/e1000e_core.c +++ b/hw/net/e1000e_core.c @@ -3511,9 +3511,9 @@ e1000e_core_reset(E1000ECore *core) e1000e_intrmgr_reset(core); =20 memset(core->phy, 0, sizeof core->phy); - memmove(core->phy, e1000e_phy_reg_init, sizeof e1000e_phy_reg_init); + memcpy(core->phy, e1000e_phy_reg_init, sizeof e1000e_phy_reg_init); memset(core->mac, 0, sizeof core->mac); - memmove(core->mac, e1000e_mac_reg_init, sizeof e1000e_mac_reg_init); + memcpy(core->mac, e1000e_mac_reg_init, sizeof e1000e_mac_reg_init); =20 core->rxbuf_min_shift =3D 1 + E1000_RING_DESC_LEN_SHIFT; =20 --=20 2.39.0