target/openrisc: Fix delay slot exception flag to match spec
authorStafford Horne <shorne@gmail.com>
Sun, 1 Jul 2018 05:02:11 +0000 (14:02 +0900)
committerStafford Horne <shorne@gmail.com>
Tue, 3 Jul 2018 13:40:33 +0000 (22:40 +0900)
commit9f6e8afad7b7bd03de6474ea871fcb724630cc0b
tree15fcb5c54cd72201f86eaca79fa36713d245bd00
parent4151e530192996d1f4db1f43e436a21a4c6f707d
target/openrisc: Fix delay slot exception flag to match spec

The delay slot exception flag is only set on the SR register during
exception.  Previously it was being set on both the ESR and SR this
caused QEMU to differ from the spec.  The was apparent as the linux
kernel had a bug where it could boot on QEMU but not on real hardware.

The fixed logic now matches hardware.

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Stafford Horne <shorne@gmail.com>
target/openrisc/interrupt.c