accel/tcg: Fix type of 'last' for pageflags_{find,next}
authorLuca Bonissi <qemu@bonslack.org>
Sun, 23 Jul 2023 17:31:58 +0000 (18:31 +0100)
committerRichard Henderson <richard.henderson@linaro.org>
Mon, 24 Jul 2023 08:48:49 +0000 (09:48 +0100)
commit32b120394c578bc824f1db4835b3bffbeca88fae
tree7cd3b0162d7574079f7a604bc15bcc8e6598be76
parent8c605cf1d4d9a39a6953086bacddefb0583d91d7
accel/tcg: Fix type of 'last' for pageflags_{find,next}

These should match 'start' as target_ulong, not target_long.

On 32bit targets, the parameter was sign-extended to uint64_t,
so only the first mmap within the upper 2GB memory can succeed.

Signed-off-by: Luca Bonissi <qemu@bonslack.org>
Message-Id: <327460e2-0ebd-9edb-426b-1df80d16c32a@bonslack.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
accel/tcg/user-exec.c