[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v1 7/8] target/mips: simplify gen_compute_imm_branch logic
From: |
Richard Henderson |
Subject: |
Re: [PATCH v1 7/8] target/mips: simplify gen_compute_imm_branch logic |
Date: |
Thu, 3 Sep 2020 10:16:38 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 |
On 9/3/20 4:21 AM, Alex Bennée wrote:
> One of the Travis builds was complaining about:
>
> qemu/include/tcg/tcg.h:437:12: error: ‘cond’ may be used uninitialized in
> this function [-Werror=maybe-uninitialized]
> return (TCGCond)(c ^ 1);
> ../target/mips/translate.c:20031:13: note: ‘cond’ was declared here
> TCGCond cond;
>
> Rather than figure out exactly which one was causing the complaint I
> just defaulted to TCG_COND_ALWAYS and allowed that state to double up
> for the now defunct bcond_compute variable.
>
> Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
> ---
> target/mips/translate.c | 12 ++----------
> 1 file changed, 2 insertions(+), 10 deletions(-)
This looks like a good cleanup.
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
r~
- Re: [PATCH v1 8/8] migration: use pstrcpy to copy run state, (continued)
[PATCH v1 6/8] tests/meson.build: fp tests don't need CONFIG_TCG, Alex Bennée, 2020/09/03
[PATCH v1 7/8] target/mips: simplify gen_compute_imm_branch logic, Alex Bennée, 2020/09/03
- Re: [PATCH v1 7/8] target/mips: simplify gen_compute_imm_branch logic,
Richard Henderson <=
Re: [PATCH v1 0/8] some testing and CI updates (re-greening), Daniel P . Berrangé, 2020/09/03