Implemented a primitive timeout

Timeout can be set through gdb with 'monitor timeout', when
triggered will cause a TARGET_SIGNAL_XCPU exception.