:fix: Pop faulting store from bypass

This commit is contained in:
Florian Zaruba 2017-09-05 17:02:04 +02:00
parent 95e36dc3e2
commit d59ed1ccc9
2 changed files with 4 additions and 1 deletions

View file

@ -338,7 +338,9 @@ module csr_regfile #(
// External Interrupts
// ---------------------
// Machine Mode External Interrupt Pending
mip_n[11] = mie_q[11] & irq_i;
// TODO: this is wrong for sure
mip_n[11] = 1'b0;
mip_n[9] = mie_q[9] & irq_i;
// Timer interrupt pending, coming from platform timer
mip_n[7] = time_irq_i;

View file

@ -160,6 +160,7 @@ module store_unit (
// we got an address translation exception (access rights, misaligned or page fault)
if (ex_i.valid && (CS != IDLE)) begin
// the only difference is that we do not want to store this request
pop_st_o = 1'b1;
st_valid = 1'b0;
NS = IDLE;
valid_o = 1'b1;