Fixed a bug that caused gdb to display wrong registers when using stlink ver 1.