[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 11/51] e1000e: Use memcpy to intialize registers
From: |
Jason Wang |
Subject: |
[PULL 11/51] e1000e: Use memcpy to intialize registers |
Date: |
Tue, 7 Mar 2023 15:07:36 +0800 |
From: Akihiko Odaki <akihiko.odaki@daynix.com>
Use memcpy instead of memmove to initialize registers. The initial
register templates and register table instances will never overlap.
Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
---
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 6a4da72..87f964c 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);
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);
core->rxbuf_min_shift = 1 + E1000_RING_DESC_LEN_SHIFT;
--
2.7.4
- [PULL 01/51] e1000e: Fix the code style, (continued)
- [PULL 01/51] e1000e: Fix the code style, Jason Wang, 2023/03/07
- [PULL 02/51] hw/net: Add more MII definitions, Jason Wang, 2023/03/07
- [PULL 03/51] fsl_etsec: Use hw/net/mii.h, Jason Wang, 2023/03/07
- [PULL 04/51] e1000: Use hw/net/mii.h, Jason Wang, 2023/03/07
- [PULL 05/51] e1000: Mask registers when writing, Jason Wang, 2023/03/07
- [PULL 07/51] e1000e: Mask registers when writing, Jason Wang, 2023/03/07
- [PULL 06/51] e1000e: Introduce E1000E_LOW_BITS_SET_FUNC, Jason Wang, 2023/03/07
- [PULL 09/51] e1000e: Use more constant definitions, Jason Wang, 2023/03/07
- [PULL 08/51] e1000: Use more constant definitions, Jason Wang, 2023/03/07
- [PULL 10/51] e1000: Use memcpy to intialize registers, Jason Wang, 2023/03/07
- [PULL 11/51] e1000e: Use memcpy to intialize registers,
Jason Wang <=
- [PULL 12/51] e1000e: Remove pending interrupt flags, Jason Wang, 2023/03/07
- [PULL 13/51] e1000e: Improve software reset, Jason Wang, 2023/03/07
- [PULL 14/51] e1000: Configure ResettableClass, Jason Wang, 2023/03/07
- [PULL 15/51] e1000e: Configure ResettableClass, Jason Wang, 2023/03/07
- [PULL 16/51] e1000e: Introduce e1000_rx_desc_union, Jason Wang, 2023/03/07
- [PULL 17/51] e1000e: Set MII_ANER_NWAY, Jason Wang, 2023/03/07
- [PULL 18/51] e1000e: Remove extra pointer indirection, Jason Wang, 2023/03/07
- [PULL 19/51] net: Check L4 header size, Jason Wang, 2023/03/07
- [PULL 20/51] e1000x: Alter the signature of e1000x_is_vlan_packet, Jason Wang, 2023/03/07
- [PULL 21/51] net: Strip virtio-net header when dumping, Jason Wang, 2023/03/07