OSDN Git Service

target/m68k: consolidate physical translation offset into get_physical_address()
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Wed, 1 Jul 2020 20:15:31 +0000 (21:15 +0100)
committerLaurent Vivier <laurent@vivier.eu>
Mon, 6 Jul 2020 19:39:57 +0000 (21:39 +0200)
commit852002b5664bf079da05c5201dbf2345b870e5ed
tree15a44d51fbbbfe90699ae9ad1256ce239e472bc1
parent78318119eead6aed050d1730a6b72d1c555302d2
target/m68k: consolidate physical translation offset into get_physical_address()

Since all callers to get_physical_address() now apply the same page offset to
the translation result, move the logic into get_physical_address() itself to
avoid duplication.

Suggested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20200701201531.13828-3-mark.cave-ayland@ilande.co.uk>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
target/m68k/helper.c