Skip to content

Commit

Permalink
Make FPCSR is R/W accessible for both user- and supervisor- modes.
Browse files Browse the repository at this point in the history
  • Loading branch information
bandvig committed Jan 15, 2022
1 parent 79ce290 commit cd9e2bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rtl/verilog/or1k_marocchino_ctrl.v
Expand Up @@ -714,7 +714,7 @@ module or1k_marocchino_ctrl
assign except_fpu_enable_o = spr_fpcsr[`OR1K_FPCSR_FPEE];

wire spr_fpcsr_we = (`SPR_OFFSET(({1'b0, spr_sys_group_wadr_r})) == `SPR_OFFSET(`OR1K_SPR_FPCSR_ADDR)) &
spr_sys_group_we & spr_sr[`OR1K_SPR_SR_SM];
spr_sys_group_we; // FPCSR is R/W for both user- and supervisor- modes

`ifdef OR1K_FPCSR_MASK_FLAGS
reg [`OR1K_FPCSR_ALLF_SIZE-1:0] ctrl_fpu_mask_flags_r;
Expand Down

0 comments on commit cd9e2bd

Please sign in to comment.