diff options
author | Chih-Min Chao <chihmin.chao@sifive.com> | 2020-04-08 21:45:32 -0700 |
---|---|---|
committer | Chih-Min Chao <chihmin.chao@sifive.com> | 2020-04-09 18:33:53 -0700 |
commit | b6f7b65b659d485990430e5db3b7dc4a6ee94f8f (patch) | |
tree | 1f7dd2d4be62c13ad0d726f7e9ce0abe5d0a5f6b /fesvr | |
parent | 942662a2334da7a6cb2f5015fd2145f578b2df76 (diff) | |
download | spike-b6f7b65b659d485990430e5db3b7dc4a6ee94f8f.zip spike-b6f7b65b659d485990430e5db3b7dc4a6ee94f8f.tar.gz spike-b6f7b65b659d485990430e5db3b7dc4a6ee94f8f.tar.bz2 |
op: update CSR
1. add new hypervisor csr
2. add debug module csr
3. add some new high part register for rv32
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
Diffstat (limited to 'fesvr')
-rw-r--r-- | fesvr/dtm.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fesvr/dtm.cc b/fesvr/dtm.cc index 993011d..91cacb2 100644 --- a/fesvr/dtm.cc +++ b/fesvr/dtm.cc @@ -433,11 +433,11 @@ uint64_t dtm_t::modify_csr(unsigned which, uint64_t data, uint32_t type) // need to run more commands to save and restore // S0. uint32_t prog[] = { - CSRRx(WRITE, S0, CSR_DSCRATCH, S0), + CSRRx(WRITE, S0, CSR_DSCRATCH0, S0), LOAD(xlen, S0, X0, data_base), CSRRx(type, S0, which, S0), STORE(xlen, S0, X0, data_base), - CSRRx(WRITE, S0, CSR_DSCRATCH, S0), + CSRRx(WRITE, S0, CSR_DSCRATCH0, S0), EBREAK }; |