target/openrisc: Fix singlestep_enabled
commite0a369cf88041a71cf5d902f1d78c9a645a6709e
authorRichard Henderson <richard.henderson@linaro.org>
Tue, 22 May 2018 22:15:12 +0000 (22 15:15 -0700)
committerStafford Horne <shorne@gmail.com>
Mon, 2 Jul 2018 15:05:28 +0000 (3 00:05 +0900)
treeddf0095e9a08f55f8a9670dd6121423097960715
parent64e46c958162d986cc6e0cdfd6fb8f11b6f31748
target/openrisc: Fix singlestep_enabled

We failed to store to cpu_pc before raising the exception,
which caused us to re-execute the same insn that we stepped.

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