Cadence: gem: fix wraparound in 64bit descriptors
authorRamon Fried <rfried.dev@gmail.com>
Fri, 17 Apr 2020 17:17:36 +0000 (20:17 +0300)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 30 Apr 2020 14:35:41 +0000 (15:35 +0100)
commitf1e7cb1388e46eac8285854af2abdfde41ffa226
treed459b573921c47214531ba3cd016aa0033c90459
parent681b5bc32322fd0ff4338c550ec24612512d1a2e
Cadence: gem: fix wraparound in 64bit descriptors

Wraparound of TX descriptor cyclic buffer only updated
the low 32 bits of the descriptor.
Fix that by checking if we're working with 64bit descriptors.

Signed-off-by: Ramon Fried <rfried.dev@gmail.com>
Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Message-id: 20200417171736.441607-1-rfried.dev@gmail.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/net/cadence_gem.c