OSDN Git Service

target/s390x: Implement the MVPG condition-code-option bit
authorRichard Henderson <richard.henderson@linaro.org>
Mon, 15 Mar 2021 08:54:48 +0000 (09:54 +0100)
committerCornelia Huck <cohuck@redhat.com>
Mon, 15 Mar 2021 10:03:20 +0000 (11:03 +0100)
commite56552cf0771a7f60ae4c1bc186d43a585022849
tree5aef48ec6ed17d889e9b05914f426dae02348887
parentd66a52b50f089d69a70beb2e507d3035ffeaf016
target/s390x: Implement the MVPG condition-code-option bit

If the CCO bit is set, MVPG should not generate an exception but
report page translation faults via a CC code.

Create a new helper, access_prepare_nf, which can use probe_access_flags
in non-faulting mode, and then handle watchpoints.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
[thuth: Added logic to still inject protection exceptions]
Signed-off-by: Thomas Huth <thuth@redhat.com>
[david: Look at env->tlb_fill_exc to determine if there was an exception]
Signed-off-by: David Hildenbrand <david@redhat.com>
Tested-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20210315085449.34676-2-david@redhat.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
target/s390x/cpu.h
target/s390x/excp_helper.c
target/s390x/mem_helper.c