target/microblaze: Unwind properly when raising divide-by-zero
commite98651d9ca475259a6721f6f1cff5da1ad4f0cc1
authorRichard Henderson <richard.henderson@linaro.org>
Tue, 18 Aug 2020 06:12:14 +0000 (17 23:12 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 1 Sep 2020 14:41:38 +0000 (1 07:41 -0700)
treee58811524239e256a21bf763010cbcf722ec471e
parentb1354342c1c7a01ef251160725db50ee8c40511a
target/microblaze: Unwind properly when raising divide-by-zero

Restore the correct pc when raising divide-by-zero.  Also, the
MSR[DZO] bit is sticky -- it is not cleared with a successful divide.

Tested-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
target/microblaze/helper.h
target/microblaze/op_helper.c