target/s390x: improve 24-bit and 31-bit addresses read
commita5c3cedd739b7cf0aea051f9f70adf2bcf813e1a
authorAurelien Jarno <aurelien@aurel32.net>
Wed, 31 May 2017 22:01:13 +0000 (1 00:01 +0200)
committerRichard Henderson <rth@twiddle.net>
Tue, 6 Jun 2017 22:20:42 +0000 (6 15:20 -0700)
treee3c50298dd112eda360d3e9ee2439dd1b7a8ff79
parent01f8db88579bef0b6de9f48d0ad2617c5ca2696f
target/s390x: improve 24-bit and 31-bit addresses read

Improve fix_address to also handle the 24-bit mode. Rename fix_address
to wrap_address to better explain what is changed.

Replace the calls to get_address with x2 = 0 and b2 = 0 by
call to wrap_address, leading to the removal of this function. Rename
get_address_31fix into get_address.

Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Message-Id: <20170531220129.27724-15-aurelien@aurel32.net>
Signed-off-by: Richard Henderson <rth@twiddle.net>
target/s390x/mem_helper.c