s390x/mmu: Implement ESOP-2 and access-exception-fetch/store-indication facility
commit3dc29061f3291bf0b6cda9cc7bc04aa94101b52e
authorDavid Hildenbrand <david@redhat.com>
Mon, 15 Jan 2018 00:17:34 +0000 (15 01:17 +0100)
committerDavid Hildenbrand <david@redhat.com>
Wed, 9 Oct 2019 10:49:01 +0000 (9 12:49 +0200)
tree29147f66923f935014e38305f145596c56aa0e1f
parent90790898a1c93072d080f46b30259ee5ca4e6435
s390x/mmu: Implement ESOP-2 and access-exception-fetch/store-indication facility

We already implement ESOP-1. For ESOP-2, we only have to indicate all
protection exceptions properly. Due to EDAT-1, we already indicate DAT
exceptions properly. We don't trigger KCP/ALCP/IEP exceptions yet.

So all we have to do is set the TEID (TEC) to the right values
(bit 56, 60, 61) in case of LAP.

We don't have any side-effects (e.g., no guarded-storage facility),
therefore, bit 64 of the TEID (TEC) is always 0.

We always have to indicate whether it is a fetch or a store for all access
exceptions. This is only missing for LAP exceptions.

Acked-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: David Hildenbrand <david@redhat.com>
target/s390x/mmu_helper.c