XCore target: implement exception handling