diff options
author | Chih-Min Chao <chihmin.chao@sifive.com> | 2019-04-15 21:46:49 -0700 |
---|---|---|
committer | Chih-Min Chao <chihmin.chao@sifive.com> | 2019-04-15 21:46:49 -0700 |
commit | 1534031e59e9076cc55beff4d2806b354ca7eb1c (patch) | |
tree | 30af1cf96ae0a772bbe161c41c98169bf1a8d926 /riscv/execute.cc | |
parent | b97e4fb1a7ab774ca8f340a9d7eb30a4455b387f (diff) | |
download | spike-1534031e59e9076cc55beff4d2806b354ca7eb1c.zip spike-1534031e59e9076cc55beff4d2806b354ca7eb1c.tar.gz spike-1534031e59e9076cc55beff4d2806b354ca7eb1c.tar.bz2 |
rvv: refine vector register expression in interactive mode
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
Diffstat (limited to 'riscv/execute.cc')
-rw-r--r-- | riscv/execute.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/riscv/execute.cc b/riscv/execute.cc index b6a3b31..963670d 100644 --- a/riscv/execute.cc +++ b/riscv/execute.cc @@ -201,7 +201,8 @@ void processor_t::step(size_t n) if (now != old) { float fv; memcpy(&fv, &now, sizeof(fv)); - fprintf(stderr, "v%ld[%ld] <- 0x%08x %f\n", i, j, now, fv); + fprintf(stderr, "v%ld[%3ld:%3ld] <- 0x%08x %f\n", + i, (j + 1) * 32 - 1, j * 32, now, fv); old = now; } } |