diff options
author | Akihiko Odaki <akihiko.odaki@daynix.com> | 2023-02-23 19:19:55 +0900 |
---|---|---|
committer | Jason Wang <jasowang@redhat.com> | 2023-03-10 15:35:38 +0800 |
commit | a7539f9d749efb322d72106acbbfd1e4e5c8b5bc (patch) | |
tree | 5a6d8335bbf07566876c40adc6ffd13520248bf0 | |
parent | 9eb525ee89bcea1515089d8c6cfb01155f6bbf3d (diff) | |
download | qemu-a7539f9d749efb322d72106acbbfd1e4e5c8b5bc.zip qemu-a7539f9d749efb322d72106acbbfd1e4e5c8b5bc.tar.gz qemu-a7539f9d749efb322d72106acbbfd1e4e5c8b5bc.tar.bz2 |
e1000e: Use memcpy to intialize registers
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>
-rw-r--r-- | hw/net/e1000e_core.c | 4 |
1 files 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; |