From: Benjamin Herrenschmidt Date: Wed, 8 Jul 2020 03:21:45 +0000 (+1000) Subject: memtest: Fix memspeed access size X-Git-Tag: 24jan2021_ls180~92^2~1 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c0b948d4f9c1e0e14d95e1df9c1ffb5391ba3bed;p=litex.git memtest: Fix memspeed access size The move to libbase reverted the type of the pointer from long to int. Signed-off-by: Benjamin Herrenschmidt --- diff --git a/litex/soc/software/libbase/memtest.c b/litex/soc/software/libbase/memtest.c index df528d55..2fd5aedc 100644 --- a/litex/soc/software/libbase/memtest.c +++ b/litex/soc/software/libbase/memtest.c @@ -164,7 +164,7 @@ int memtest_data(unsigned int *addr, unsigned long size, int random) void memspeed(unsigned int *addr, unsigned long size, bool read_only) { - volatile unsigned int *array = addr; + volatile unsigned long *array = (unsigned long *)addr; int i; unsigned int start, end; unsigned long write_speed = 0;