agra-uni-bremen / riscv-vp

RISC-V Virtual Prototype
MIT License
139 stars 49 forks source link

Add missing return statement #1

Closed krypt-n closed 6 years ago

krypt-n commented 6 years ago

Hi there,

GCC 8 enabled the -Wreturn-type warning by default and it complained about csr_base::read. I thought fixing that would be worthwhile before someone has to debug weird undefined behavior bugs.

This PR also includes gitignore files that make working with this repo somewhat easier.

Ping @vherdt

Cirromulus commented 6 years ago

This fix seems very useful to me.