Skip to content
This repository has been archived by the owner on Apr 27, 2023. It is now read-only.

Commit

Permalink
RTL: Disallow GPR writeback when interrupt is taken.
Browse files Browse the repository at this point in the history
 On branch master
 Your branch is ahead of 'origin/master' by 3 commits.
   (use "git push" to publish your local commits)

 Changes to be committed:
	modified:   rtl/core/frv_pipeline_writeback.v
  • Loading branch information
ben-marshall committed Mar 20, 2020
1 parent b8595e2 commit 641b937
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rtl/core/frv_pipeline_writeback.v
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ assign gpr_wide =
fu_bit && (s4_uop == BIT_RORW) ;


assign gpr_wen = !s4_trap &&
assign gpr_wen = !s4_trap && !trap_int &&
(csr_gpr_wen || alu_gpr_wen || lsu_gpr_wen ||
cfu_gpr_wen || mul_gpr_wen || asi_gpr_wen ||
bit_gpr_wen || rng_gpr_wen );
Expand Down

0 comments on commit 641b937

Please sign in to comment.