target-s390x: PER: add Breaking-Event-Address register
commit3da0ab35292fe93640cfdd95aa8bedec8f145d2c
authorAurelien Jarno <aurelien@aurel32.net>
Fri, 12 Jun 2015 22:46:03 +0000 (13 00:46 +0200)
committerAlexander Graf <agraf@suse.de>
Wed, 17 Jun 2015 10:40:52 +0000 (17 12:40 +0200)
treeb1002d1195a3401c89ffa0ce1b7242baa8d83904
parent83bb161299c019e25a3add59504f0b69e6257dcd
target-s390x: PER: add Breaking-Event-Address register

This patch adds support for PER Breaking-Event-Address register. Like
real hardware, it save the current PSW address when the PSW address is
changed by an instruction. We have to take care of optimizations QEMU
does, a branch to the next instruction is still a branch.

This register is copied to low core memory when a program exception
happens.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: Alexander Graf <agraf@suse.de>
target-s390x/cpu.c
target-s390x/cpu.h
target-s390x/helper.c
target-s390x/translate.c