OSDN Git Service

target-openrisc: Write back result before FPE exception
authorRichard Henderson <rth@twiddle.net>
Thu, 19 Feb 2015 04:40:38 +0000 (20:40 -0800)
committerRichard Henderson <richard.henderson@linaro.org>
Mon, 14 May 2018 21:35:02 +0000 (14:35 -0700)
commit4e2d30079c0e771d2c6a607001a4165f2cb51d82
tree34b0f32e08b3df7c92bd084e68f4bd11ae84046d
parentbbd87423ea0c436c55bbc3f9c23d4f811d1f3f29
target-openrisc: Write back result before FPE exception

The architecture manual is unclear about this, but the or1ksim
does writeback before the exception.  This requires splitting
the helpers in half, with the exception raised by the second.

Acked-by: Stafford Horne <shorne@gmail.com>
Reviewed-by: Bastian Koppelmann <kbastian@mail.uni-paderborn.de>
Signed-off-by: Richard Henderson <rth@twiddle.net>
target/openrisc/fpu_helper.c
target/openrisc/helper.h
target/openrisc/translate.c