From: Ilya Leoshkevich<iii@linux.ibm.com>
Currently qemu_target_page_mask() is usable only from the softmmu
code. Make it possible to use it from the *-user code as well.
Make use of it in perf.c.
Signed-off-by: Ilya Leoshkevich<iii@linux.ibm.com>
Message-ID:<20231208003754.3688038-2-iii@linux.ibm.com>
Signed-off-by: Philippe Mathieu-Daudé<philmd@linaro.org>
---
accel/tcg/perf.c | 3 ++-
system/physmem.c | 5 -----
target/target-common.c | 10 ++++++++++
target/meson.build | 2 ++
4 files changed, 14 insertions(+), 6 deletions(-)
create mode 100644 target/target-common.c