target/sh4: Let get_physical_address() use MMUAccessType access_type
commitbe617b44fef9747f0529234ad4d1dfbc88971e30
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Wed, 27 Jan 2021 23:09:23 +0000 (28 00:09 +0100)
committerPhilippe Mathieu-Daudé <f4bug@amsat.org>
Sat, 6 Mar 2021 15:18:42 +0000 (6 16:18 +0100)
tree2ea340da77b5d61ebf08c83e3ffab82469d752ca
parent31ffda71338348915f54e997edc12d9e30425438
target/sh4: Let get_physical_address() use MMUAccessType access_type

superh_cpu_tlb_fill() already provides a access_type variable of
type MMUAccessType, and it is passed along, but casted as integer
and renamed 'rw'.
Simply replace 'int rw' by 'MMUAccessType access_type'.

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20210127232151.3523581-5-f4bug@amsat.org>
target/sh4/helper.c