diff options
author | Richard Henderson | 2020-07-01 18:28:15 +0200 |
---|---|---|
committer | Richard Henderson | 2020-07-06 19:58:19 +0200 |
commit | 852f933e482518797f7785a2e017a215b88df815 (patch) | |
tree | 268e898809b41c5953ade7302d4c8cbd422902b9 /hw/mips/jazz.c | |
parent | tcg/ppc: Sanitize immediate shifts (diff) | |
download | qemu-852f933e482518797f7785a2e017a215b88df815.tar.gz qemu-852f933e482518797f7785a2e017a215b88df815.tar.xz qemu-852f933e482518797f7785a2e017a215b88df815.zip |
tcg: Fix do_nonatomic_op_* vs signed operations
The smin/smax/umin/umax operations require the operands to be
properly sign extended. Do not drop the MO_SIGN bit from the
load, and additionally extend the val input.
Reviewed-by: LIU Zhiwei <zhiwei_liu@c-sky.com>
Reported-by: LIU Zhiwei <zhiwei_liu@c-sky.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20200701165646.1901320-1-richard.henderson@linaro.org>
Diffstat (limited to 'hw/mips/jazz.c')
0 files changed, 0 insertions, 0 deletions