diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2019-08-26 15:10:10 -0700 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2019-09-04 12:58:55 -0700 |
commit | a465772eea8fef59bef9a9fe424b1af4866991f5 (patch) | |
tree | 67872aa23218d239cfbd37c28b538d3ae063ea1f /target/openrisc/cpu.c | |
parent | 2b13b4b93dc924a139d7a9350cd13c2c9479d03b (diff) |
target/openrisc: Implement move to/from FPCSR
Reviewed-by: Stafford Horne <shorne@gmail.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'target/openrisc/cpu.c')
-rw-r--r-- | target/openrisc/cpu.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/target/openrisc/cpu.c b/target/openrisc/cpu.c index b931605e62..f96a69e278 100644 --- a/target/openrisc/cpu.c +++ b/target/openrisc/cpu.c @@ -55,6 +55,7 @@ static void openrisc_cpu_reset(CPUState *s) cpu->env.sr = SR_FO | SR_SM; cpu->env.lock_addr = -1; s->exception_index = -1; + cpu_set_fpcsr(&cpu->env, 0); #ifndef CONFIG_USER_ONLY cpu->env.picmr = 0x00000000; |