target/m68k: In get_physical_address() check for memory access failures
commitadcf0bf017351776510121e47b9226095836023c
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 10 Dec 2018 16:56:35 +0000 (10 16:56 +0000)
committerLaurent Vivier <laurent@vivier.eu>
Thu, 16 May 2019 19:40:45 +0000 (16 21:40 +0200)
tree35e30206beb4d454b48d7dcbc301c5753b981344
parentf80b551ddc8b2d3ffc358f6fc7351e4100ab3dff
target/m68k: In get_physical_address() check for memory access failures

In get_physical_address(), use address_space_ldl() and
address_space_stl() instead of ldl_phys() and stl_phys().
This allows us to check whether the memory access failed.
For the moment, we simply return -1 in this case;
add a TODO comment that we should ideally generate the
appropriate kind of fault.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Message-Id: <20181210165636.28366-3-peter.maydell@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
target/m68k/helper.c