|
| From: | Richard Henderson |
| Subject: | Re: [PATCH v5 2/4] target/arm: Make sure that commpage's tb->size != 0 |
| Date: | Fri, 23 Apr 2021 10:49:15 -0700 |
| User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 |
On 4/16/21 8:49 AM, Ilya Leoshkevich wrote:
tb_gen_code() assumes that tb->size must never be zero, otherwise it may produce spurious exceptions. For ARM this may happen when creating a translation block for the commpage. Fix by pretending that commpage translation blocks have at least one instruction. Signed-off-by: Ilya Leoshkevich<iii@linux.ibm.com> --- target/arm/translate.c | 2 ++ 1 file changed, 2 insertions(+)
Reviewed-by: Richard Henderson <richard.henderson@linaro.org> r~
| [Prev in Thread] | Current Thread | [Next in Thread] |