]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
powerpc: Set regs->dar if memory access fails in emulate_step()
authorPaul Mackerras <paulus@ozlabs.org>
Wed, 30 Aug 2017 04:12:37 +0000 (14:12 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 1 Sep 2017 06:39:54 +0000 (16:39 +1000)
commitb9da9c8a48c56339c7c95d8ff0c9aff93727ac95
tree8808c889993e2d62d28d9a737f314328b306a741
parentb2543f7b20bb2a551ed340447d7303f0ce4644f1
powerpc: Set regs->dar if memory access fails in emulate_step()

This adds code to the instruction emulation code to set regs->dar
to the address of any memory access that fails.  This address is
not necessarily the same as the effective address of the instruction,
because if the memory access is unaligned, it might cross a page
boundary and fault on the second page.

Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/lib/sstep.c