Fixed JAL instruction to use rd instead of always x1 as destination register
Fixed emulator to avoid bad recv() call after exit_code set by syscall device in fesvr.