aboutsummaryrefslogtreecommitdiff
path: root/riscv/execute.cc
diff options
context:
space:
mode:
authorChih-Min Chao <chihmin.chao@sifive.com>2019-04-15 21:46:49 -0700
committerChih-Min Chao <chihmin.chao@sifive.com>2019-04-15 21:46:49 -0700
commit1534031e59e9076cc55beff4d2806b354ca7eb1c (patch)
tree30af1cf96ae0a772bbe161c41c98169bf1a8d926 /riscv/execute.cc
parentb97e4fb1a7ab774ca8f340a9d7eb30a4455b387f (diff)
downloadspike-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.cc3
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;
}
}