summaryrefslogtreecommitdiffstats
path: root/target/openrisc/cpu.c
diff options
context:
space:
mode:
authorRichard Henderson2018-05-27 21:02:17 +0200
committerStafford Horne2018-07-03 15:40:33 +0200
commite8f29049b1e904068ce874e6a40b6ad18b26e121 (patch)
tree954be452e037a4384971bf9c9554bea2ebad70d1 /target/openrisc/cpu.c
parenttarget/openrisc: Add support in scripts/qemu-binfmt-conf.sh (diff)
downloadqemu-e8f29049b1e904068ce874e6a40b6ad18b26e121.tar.gz
qemu-e8f29049b1e904068ce874e6a40b6ad18b26e121.tar.xz
qemu-e8f29049b1e904068ce874e6a40b6ad18b26e121.zip
linux-user: Implement signals for openrisc
All of the existing code was boilerplate from elsewhere, and would crash the guest upon the first signal. Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Stafford Horne <shorne@gmail.com> --- v2: Add a comment to the new definition of target_pt_regs. Install the signal mask into the ucontext. v3: Incorporate feedback from Laurent.
Diffstat (limited to 'target/openrisc/cpu.c')
-rw-r--r--target/openrisc/cpu.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/target/openrisc/cpu.c b/target/openrisc/cpu.c
index e01ce9ed1c..fb7cb5c507 100644
--- a/target/openrisc/cpu.c
+++ b/target/openrisc/cpu.c
@@ -27,6 +27,7 @@ static void openrisc_cpu_set_pc(CPUState *cs, vaddr value)
OpenRISCCPU *cpu = OPENRISC_CPU(cs);
cpu->env.pc = value;
+ cpu->env.dflag = 0;
}
static bool openrisc_cpu_has_work(CPUState *cs)