s390x/tcg: Rework MMU selection for instruction fetches
commit3096ffd3684684a91a9190d3f93c0fc45dd2b856
authorDavid Hildenbrand <david@redhat.com>
Fri, 16 Aug 2019 08:47:05 +0000 (16 10:47 +0200)
committerCornelia Huck <cohuck@redhat.com>
Thu, 22 Aug 2019 12:53:49 +0000 (22 14:53 +0200)
tree7cbf5391a1355bf94c0833f48e15ac285386639d
parentc36709e45d5f636bcdf6bfb78f95e27260018ef5
s390x/tcg: Rework MMU selection for instruction fetches

Instructions are always fetched from primary address space, except when
in home address mode. Perform the selection directly in cpu_mmu_index().

get_mem_index() is only used to perform data access, instructions are
fetched via cpu_lduw_code(), which translates to cpu_mmu_index(env, true).

We don't care about restricting the access permissions of the TLB
entries anymore, as we no longer enter PRIMARY entries into the
SECONDARY MMU. Cleanup related code a bit.

Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Message-Id: <20190816084708.602-4-david@redhat.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
target/s390x/cpu.h
target/s390x/mmu_helper.c