Skip to content

Commit

Permalink
Merge pull request #148 from openrisc/fpcsr_free_access
Browse files Browse the repository at this point in the history
Make FPCSR is R/W accessible for both user- and supervisor- modes.
  • Loading branch information
stffrdhrn committed Feb 26, 2022
2 parents aca2481 + 6b1beaa commit 44ea698
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rtl/verilog/mor1kx_ctrl_cappuccino.v
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@ module mor1kx_ctrl_cappuccino
spr_fpcsr[`OR1K_FPCSR_FPEE] <= 1'b0;
end
else if ((spr_we & spr_access[`OR1K_SPR_SYS_BASE] &
(spr_sr[`OR1K_SPR_SR_SM] & padv_ctrl | du_access)) &&
(padv_ctrl | du_access)) &&
`SPR_OFFSET(spr_addr)==`SPR_OFFSET(`OR1K_SPR_FPCSR_ADDR)) begin
spr_fpcsr <= spr_write_dat[`OR1K_FPCSR_WIDTH-1:0]; // update all fields
`ifdef OR1K_FPCSR_MASK_FLAGS
Expand Down

0 comments on commit 44ea698

Please sign in to comment.