OSDN Git Service

target/hppa: fix overwriting source reg in addb
authorSven Schnelle <svens@stackframe.org>
Mon, 11 Mar 2019 19:15:52 +0000 (20:15 +0100)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 12 Mar 2019 16:13:43 +0000 (09:13 -0700)
commit43675d20150e65a5a45923a6fcd292e80006dad0
treea2e5866abb89ebc2a095df4df949c98fc345960c
parentf3b423ec6ee4123fedbb74db517262dd14fa4d73
target/hppa: fix overwriting source reg in addb

When one of the source registers is the same as the destination register,
the source register gets overwritten with the destionation value before
do_add_sv() is called, which leads to unexpection condition matches.

Signed-off-by: Sven Schnelle <svens@stackframe.org>
Message-Id: <20190311191602.25796-2-svens@stackframe.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
target/hppa/translate.c