s390x/mmu: Move DAT protection handling out of mmu_translate_asce()
authorDavid Hildenbrand <david@redhat.com>
Wed, 25 Sep 2019 09:53:52 +0000 (11:53 +0200)
committerDavid Hildenbrand <david@redhat.com>
Wed, 9 Oct 2019 10:33:47 +0000 (12:33 +0200)
commit124ada6810277983b0ba3faea6b900bf879a67ea
treebf8b93eb5b52449d68d81b5a3d4bea219843532e
parenta780d096e640ce736577aba17163a3f6ec4b50b0
s390x/mmu: Move DAT protection handling out of mmu_translate_asce()

We'll reuse the ilen and tec definitions in mmu_translate
soon also for all other DAT exceptions we inject. Move it to the caller,
where we can later pair it up with other protection checks, like IEP.

Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: David Hildenbrand <david@redhat.com>
target/s390x/mmu_helper.c