RISC-V qemu has bug on the return value of function qemu_plugin_mem_size_shift()