It works fine for spu_test, but I'm not sure if the latest GCC ARM version may cause issues when compiling Main_MiSTer. (ElectronAsh).
sudo apt-get update
sudo apt-get install libc6-armel-cross libc6-dev-armel-cross binutils-arm-linux-gnueabi libncurses5-dev build-essential bison flex libssl-dev bc
sudo apt-get install gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf
wget -c https://releases.linaro.org/components/toolchain/binaries/6.5-2018.12/arm-linux-gnueabihf/gcc-linaro-6.5.0-2018.12-x86_64_arm-linux-gnueabihf.tar.xz
tar xf gcc-linaro-6.5.0-2018.12-x86_64_arm-linux-gnueabihf.tar.xz -C /opt
export CC='/opt/gcc-linaro-6.5.0-2018.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc'
export PATH=$PATH:/opt/gcc-linaro-6.5.0-2018.12-x86_64_arm-linux-gnueabihf/bin
export PATH=$PATH:/opt/gcc-linaro-6.5.0-2018.12-x86_64_arm-linux-gnueabihf/lib
arm-linux-gnueabihf-gcc spu_test.c -o spu_test
./comp.sh
(replace the IP address in the comp.sh script with the IP from your MiSTer main OSD menu.)
The core MUST have AXI bridge support enabled, else running spu_test will likely crash the HPS, and it will self-restart after 10-20 seconds.