]> git.sur5r.net Git - openocd/commit
target: cortex_a: fix segfault when SPSR is not properly handled
authorPaul Fertser <fercerpav@gmail.com>
Mon, 12 Dec 2016 08:50:17 +0000 (11:50 +0300)
committerPaul Fertser <fercerpav@gmail.com>
Sun, 25 Dec 2016 09:23:56 +0000 (09:23 +0000)
commitd491b88dd94afb7c796dbe89ea52aecdefebf1cc
tree3f33353fe0e4ea0911b8697b915c317eb170f481
parentee4f11dd6822608b60363766646c96c5290ab7ba
target: cortex_a: fix segfault when SPSR is not properly handled

OpenOCD doesn't (yet) know how to handle HYP mode properly so spsr
register is not getting initialised when OpenOCD connects to a target
stopped in this mode.

Reported on IRC by thinkfat and nearffxx.

Change-Id: I4bda9ba0c582c8e9cacefe708cc4a3d947151f84
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
Reviewed-on: http://openocd.zylin.com/3906
Tested-by: jenkins
Reviewed-by: Matthias Welwarsky <matthias@welwarsky.de>
Reviewed-by: Chengyu Zheng <chengyu.zheng@polimi.it>
src/target/cortex_a.c