semihosting: move semihosting_result_t from riscv.h to the semihosting_common.h