kuznia-rdzeni / coreblocks

RISC-V out-of-order core for education and research purposes
https://kuznia-rdzeni.github.io/coreblocks/
BSD 3-Clause "New" or "Revised" License
37 stars 16 forks source link

Fix `mepc` alignment #724

Closed piotro888 closed 3 months ago

piotro888 commented 3 months ago

I forgot to resolve one TODO before merging #523

Lower bits of mepc must by read-only zeroes by specification (3.1.14), otherwise misaligned pc could be introduced to the core.