>> You can use -r option (e.g. ./qemu-riscv64 -r 4.15) or set QEMU_UNAME >> environment variable to change the uname for qemu. > > But be aware that the emulated environment still assumes that all system > calls implemented by 4.15 are available, and qemu linux-user generally > just passes them through to the host kernel. If the host kernel is too > old to provide a particular system call the emulation may malfunction.
Yeah, but it's enough for running gcc testsuite.