diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2023-08-10 08:37:14 -0700 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2023-08-10 10:59:24 -0700 |
commit | 6a2c23ddeb5bc8883c227ce1a3ff22e9978291af (patch) | |
tree | 77ad1258da6d415d10ba0c44416247476f1cfb52 /tests/guest-debug | |
parent | 64d3be986f9e2379bc688bf1d0aca0557e0035ca (diff) |
accel/tcg: Avoid reading too much in load_atom_{2,4}
When load_atom_extract_al16_or_al8 is inexpensive, we want to use
it early, in order to avoid the overhead of required_atomicity.
However, we must not read past the end of the page.
If there are more than 8 bytes remaining, then both the "aligned 16"
and "aligned 8" paths align down so that the read has at least
16 bytes remaining on the page.
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'tests/guest-debug')
0 files changed, 0 insertions, 0 deletions