Re: [Qemu-devel] [PATCH 3/5] target/hppa: fix log conditions

2019-02-11 Thread Richard Henderson
On 2/11/19 10:19 AM, Sven Schnelle wrote: > switch (cf >> 1) { > -case 4: case 5: case 6: > -cf &= 1; > +case 0: /* never */ > +cond = cond_make_f(); > +break; > +case 1: /* = all bits are zero */ > +cond = cond_make_0(TCG_COND_EQ, res); > +

[Qemu-devel] [PATCH 3/5] target/hppa: fix log conditions

2019-02-11 Thread Sven Schnelle
Now that do_cond() uses sign overflow for some condition matches we need to roll our own version without sign overflow checks. Signed-off-by: Sven Schnelle --- target/hppa/translate.c | 29 ++--- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git