diff options
| author | Richard Henderson <rth@twiddle.net> | 2017-10-05 10:35:59 -0400 |
|---|---|---|
| committer | Riku Voipio <riku.voipio@linaro.org> | 2017-10-16 16:00:56 +0300 |
| commit | de258eb07db6cf893ef1bfad8c0cedc0b983db55 (patch) | |
| tree | 11bf3920f61db79d62eff37e85504e01afbe3c5f /linux-user/arm/target_cpu.h | |
| parent | e568f9df086965813a318ff0558782ba90e59c33 (diff) | |
| download | focaccia-qemu-de258eb07db6cf893ef1bfad8c0cedc0b983db55.tar.gz focaccia-qemu-de258eb07db6cf893ef1bfad8c0cedc0b983db55.zip | |
tcg: Fix off-by-one in assert in page_set_flags
Most of the users of page_set_flags offset (page, page + len) as the end points. One might consider this an error, since the other users do supply an endpoint as the last byte of the region. However, the first thing that page_set_flags does is round end UP to the start of the next page. Which means computing page + len - 1 is in the end pointless. Therefore, accept this usage and do not assert when given the exact size of the vm as the endpoint. Signed-off-by: Richard Henderson <rth@twiddle.net> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-Id: <20170708025030.15845-2-rth@twiddle.net> Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
Diffstat (limited to 'linux-user/arm/target_cpu.h')
0 files changed, 0 insertions, 0 deletions