cadence_gem: Fix priority queue out of bounds access
commit79b2ac8f28748b09816d09bd62a2b49ddc01ebeb
authorAlistair Francis <alistair.francis@xilinx.com>
Tue, 4 Oct 2016 12:28:09 +0000 (4 13:28 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 4 Oct 2016 12:28:09 +0000 (4 13:28 +0100)
tree3c39c8d93b8ee3544d3cb9b206f401de652013c2
parent03bf19535c2581937397e608335c111c03895ba8
cadence_gem: Fix priority queue out of bounds access

There was an error with some of the register implementation assuming
there are 16 priority queues supported when the IP only supports 8. This
patch corrects the registers to only support 8 queues.

Signed-off-by: Alistair Francis <alistair.francis@xilinx.com>
Reported-by: Paolo Bonzini <pbonzini@redhat.com>
Message-id: 33bf2d28326d22875602234b8b15cf56fb678333.1474911607.git.alistair.francis@xilinx.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/net/cadence_gem.c