riscv-mit / riscv-isa-sim

RISC-V Functional ISA Simulator
Other
4 stars 1 forks source link

add “fake” tag cache / widen others #2

Closed ievans closed 9 years ago

ievans commented 9 years ago

See mmu.{h,cc}

ievans commented 9 years ago

Specifically it looks like we need to modify the store_func and load_func templates in mmu.h. It's going to be a tad complicated as we need to return the tag and the attribute but the function only returns the address (as opposed to putting it in a register directly. So perhaps a better option is to add additional calls in anything that writes to a register and add an additional store_tag and load_tag instructions to the MMU?