Encode VM type in sptbr, not mstatus
authorAndrew Waterman <andrew@sifive.com>
Wed, 8 Feb 2017 22:16:08 +0000 (14:16 -0800)
committerAndrew Waterman <andrew@sifive.com>
Wed, 8 Feb 2017 22:16:08 +0000 (14:16 -0800)
commita30f1583002563aaae6a0e83c43300eaf81e646e
tree268f03b6d3fb941a15b9398abe84d10f65c49875
parentdaaf28f7296c0a5f5c90fe6646a4f8a73a720af5
Encode VM type in sptbr, not mstatus

https://github.com/riscv/riscv-isa-manual/issues/4

Also, refactor gdbserver code to not duplicate VM decoding logic.
riscv/encoding.h
riscv/gdbserver.cc
riscv/gdbserver.h
riscv/mmu.cc
riscv/mmu.h
riscv/processor.cc