diff --git a/litex/soc/software/libbase/memtest.c b/litex/soc/software/libbase/memtest.c index df528d55d..2fd5aedcb 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;