s390x/mmu: Skip exceptions properly when translating addresses for debug
commite3e09d87c6e69c2da684d5aacabe3124ebcb6f8e
authorThomas Huth <thuth@linux.vnet.ibm.com>
Thu, 12 Feb 2015 17:09:22 +0000 (12 18:09 +0100)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Wed, 18 Feb 2015 08:37:14 +0000 (18 09:37 +0100)
tree6cc5377c3394de2df9a71fb3f98a12b29a0a2c9a
parent5d180439d07774c5a2477cf9901c9b51c9edd74b
s390x/mmu: Skip exceptions properly when translating addresses for debug

When a fault occurs during the MMU lookup in s390_cpu_get_phys_page_debug(),
the trigger_page_fault() function writes the translation exception code
into the lowcore - something you would not expect during a memory access
by the debugger. Ease this problem by adding an additional parameter to
mmu_translate() which can be used to specify whether a program check and
the translation exception code should be injected or not.

Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
Signed-off-by: Jens Freimann <jfrei@linux.vnet.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
target-s390x/cpu.h
target-s390x/helper.c
target-s390x/mem_helper.c
target-s390x/mmu_helper.c