hw/net/cadence_gem: enforce 32 bits variable size for CRC
commitdf93de987f423a0ed918c425f5dbd9a25d3c6229
authorLuc Michel <luc.michel@amd.com>
Tue, 17 Oct 2023 19:44:22 +0000 (17 21:44 +0200)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 27 Oct 2023 14:27:06 +0000 (27 15:27 +0100)
tree72a5b3124f44eba7a0ec14ad7b19a6f3f810c2ff
parent71a082a3fa9845360224c66029eea8d972b8b8bd
hw/net/cadence_gem: enforce 32 bits variable size for CRC

The CRC was stored in an unsigned variable in gem_receive. Change it for
a uint32_t to ensure we have the correct variable size here.

Signed-off-by: Luc Michel <luc.michel@amd.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: sai.pavan.boddu@amd.com
Message-id: 20231017194422.4124691-12-luc.michel@amd.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/net/cadence_gem.c