OSDN Git Service

softmmu: Introduce qemu_target_page_mask() helper
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Wed, 24 May 2023 09:37:35 +0000 (11:37 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 23 Jun 2023 06:54:44 +0000 (02:54 -0400)
commitb3b408ffb9291e887029051a522a2c968a816d22
treeb8e8184a3d5306614c07841f4872dcd471b60d5d
parent5c33f9783ace0b5e077060b220978d94fecb3e81
softmmu: Introduce qemu_target_page_mask() helper

Since TARGET_PAGE_MASK is poisoned in target-agnostic code,
introduce the qemu_target_page_mask() helper to get this
value from target-agnostic code at runtime.

Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20230524093744.88442-2-philmd@linaro.org>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
include/exec/target_page.h
softmmu/physmem.c