accel/tcg: Introduce is_same_page()
commitf3b2b81b6fdaacfa8a769ad5834e6f6f129e2119
authorIlya Leoshkevich <iii@linux.ibm.com>
Thu, 11 Aug 2022 09:55:31 +0000 (11 11:55 +0200)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 6 Sep 2022 07:04:25 +0000 (6 08:04 +0100)
tree14fb9e502cc3e2007d7633770b2f6371cf391a05
parentd64655c2c35d967e9c496937885c511240204e76
accel/tcg: Introduce is_same_page()

Introduce a function that checks whether a given address is on the same
page as where disassembly started. Having it improves readability of
the following patches.

Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Message-Id: <20220811095534.241224-3-iii@linux.ibm.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
[rth: Make the DisasContextBase parameter const.]
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
include/exec/translator.h