summary refs log tree commit diff stats
path: root/bsd-user/main.c
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2020-07-01 09:28:15 -0700
committerRichard Henderson <richard.henderson@linaro.org>2020-07-06 10:58:19 -0700
commit852f933e482518797f7785a2e017a215b88df815 (patch)
tree268e898809b41c5953ade7302d4c8cbd422902b9 /bsd-user/main.c
parent94248cfc04dfa08e43aacd9d5bbfba7a47bff671 (diff)
downloadfocaccia-qemu-852f933e482518797f7785a2e017a215b88df815.tar.gz
focaccia-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 'bsd-user/main.c')
0 files changed, 0 insertions, 0 deletions