I am not the author, but I suspect qemu-user would be helpful here:
https://www.qemu.org/docs/master/user/main.html
He would just need to say how to get an assembler that would work. llvm-as might work, but I am not sure how to get it to produce code for another architecture offhand.