hw/mips: Add a bootloader helper