mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
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>
This commit is contained in:
parent
83bb161299
commit
3da0ab3529
4 changed files with 37 additions and 11 deletions
|
@ -293,6 +293,7 @@ static void do_program_interrupt(CPUS390XState *env)
|
|||
lowcore->program_old_psw.addr = cpu_to_be64(env->psw.addr);
|
||||
mask = be64_to_cpu(lowcore->program_new_psw.mask);
|
||||
addr = be64_to_cpu(lowcore->program_new_psw.addr);
|
||||
lowcore->per_breaking_event_addr = cpu_to_be64(env->gbea);
|
||||
|
||||
cpu_unmap_lowcore(lowcore);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue