change SV_REGCSR csrrwi to different meaning: 5-bit is num CSR entries to pop
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 13 Nov 2018 23:17:24 +0000 (23:17 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 13 Nov 2018 23:17:24 +0000 (23:17 +0000)
commitcae90f513a497d8c92fa9c9ad6a2ba122d913778
tree848d7d585e7a6b5ad58184907e7a6f04d43a6132
parent57f1f5de1139012a585a9e233d9eb3218b12c9f2
change SV_REGCSR csrrwi to different meaning: 5-bit is num CSR entries to pop

however, it has to be limited to what will fit into the return result.
so stops at 4 non-zero entries on RV64 and 2 on RV32.

perhaps use notification of use of x0 to remove all items requested?
can do a complate stack-wipe with one csrrwi instruction, then
riscv/processor.cc