On 26/10/26 16:24, Peter Maydell wrote:
The xlnx_dp code has some assertions in its read and write functions
guarding the fallback "read from core_registers[]" codepath.  The
array can't be overrun because of the defined size of the memory
region, but the read assert is confusingly written and the write
assert seems to be completely garbled.

Replace both with a simple check against the size the array, which

Typo "the size [of] the array".

Reviewed-by: Philippe Mathieu-Daudé <[email protected]>

makes it clear that we're asserting that we won't overflow it.

Resolves: https://gitlab.com/qemu-project/qemu/-/work_items/4586
Signed-off-by: Peter Maydell <[email protected]>
---
  hw/display/xlnx_dp.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)


Reply via email to