From c0b948d4f9c1e0e14d95e1df9c1ffb5391ba3bed Mon Sep 17 00:00:00 2001 From: Benjamin Herrenschmidt Date: Wed, 8 Jul 2020 13:21:45 +1000 Subject: [PATCH] memtest: Fix memspeed access size The move to libbase reverted the type of the pointer from long to int. Signed-off-by: Benjamin Herrenschmidt --- litex/soc/software/libbase/memtest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.30.2