target/s390x: Simplify helper_lra
authorRichard Henderson <richard.henderson@linaro.org>
Tue, 1 Oct 2019 17:16:08 +0000 (10:16 -0700)
committerDavid Hildenbrand <david@redhat.com>
Wed, 9 Oct 2019 10:49:01 +0000 (12:49 +0200)
commit9accc852d807ec6b74d6c3bb2bcafb4863b080f5
treeb7ada3c083ceb9a8fd5338d7f550941b92eedd58
parent42007b1982a0b69b5b25ba515076d6576f2c6cdc
target/s390x: Simplify helper_lra

We currently call trigger_pgm_exception to set cs->exception_index
and env->int_pgm_code and then read the values back and then
reset cs->exception_index so that the exception is not delivered.

Instead, use the exception type that we already have directly
without ever triggering an exception that must be suppressed.

Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20191001171614.8405-13-richard.henderson@linaro.org>
Signed-off-by: David Hildenbrand <david@redhat.com>
target/s390x/mem_helper.c