ftgmac100: fix dblac write test
authorerik-smit <erik.lucas.smit@gmail.com>
Sun, 28 Jun 2020 14:26:59 +0000 (16:26 +0200)
committerJason Wang <jasowang@redhat.com>
Wed, 15 Jul 2020 13:00:13 +0000 (21:00 +0800)
commita134321ef676723768973537bb9b49365ae2062e
treed6ac022d9ea0ca2efaf2bd861d0ab4a7a9c003e1
parente7b347d0bf640adb1c998d317eaf44d2d7cbd973
ftgmac100: fix dblac write test

The test of the write of the dblac register was testing the old value
instead of the new value. This would accept the write of an invalid value
but subsequently refuse any following valid writes.

Signed-off-by: erik-smit <erik.lucas.smit@gmail.com>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: Jason Wang <jasowang@redhat.com>
hw/net/ftgmac100.c