Add semihosting library

The semihosting functions is enable only on qemu simulation of stm32p103 for now.