]> xenbits.xensource.com Git - qemu-xen.git/commit
e1000e: Mask registers when writing
authorAkihiko Odaki <akihiko.odaki@daynix.com>
Thu, 23 Feb 2023 10:19:51 +0000 (19:19 +0900)
committerJason Wang <jasowang@redhat.com>
Fri, 10 Mar 2023 07:35:38 +0000 (15:35 +0800)
commitc16bd68e16198d4cc9f77cb8d4e75fd2f64b364e
treeadd371b1f0a3099218016a98223ebca5a67551b6
parent3de66fe4d7e4716c8fd544dfad5cc5e445ced12c
e1000e: Mask registers when writing

When a register has effective bits fewer than their width, the old code
inconsistently masked when writing or reading. Make the code consistent
by always masking when writing, and remove some code duplication.

Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
hw/net/e1000e_core.c