aboutsummaryrefslogtreecommitdiff
path: root/riscv/decode.h
diff options
context:
space:
mode:
authoreric-xtang1008 <tangxing1008@163.com>2021-10-26 14:37:09 +0800
committerGitHub <noreply@github.com>2021-10-25 23:37:09 -0700
commit51e4202caed101031f13a25e4079e9aaa6c0cf35 (patch)
treec378c20cbc5382b28d18a4dfd8de4efab2365cb5 /riscv/decode.h
parentd22b280198e74b871e04fc0ddb622fb825fdae49 (diff)
downloadspike-51e4202caed101031f13a25e4079e9aaa6c0cf35.zip
spike-51e4202caed101031f13a25e4079e9aaa6c0cf35.tar.gz
spike-51e4202caed101031f13a25e4079e9aaa6c0cf35.tar.bz2
Fixed a segmentation fault bug (#842)
After excuting vector load/store whole register instructions, spike would be crashed when excuted the next vector instruction. Signed-off-by: Eric Tang <tangxingxin1008@gmail.com>
Diffstat (limited to 'riscv/decode.h')
-rw-r--r--riscv/decode.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/riscv/decode.h b/riscv/decode.h
index b1780ec..191bf03 100644
--- a/riscv/decode.h
+++ b/riscv/decode.h
@@ -1705,7 +1705,7 @@ reg_t index[P.VU.vlmax]; \
} \
} \
} \
- P.VU.vstart = 0; \
+ P.VU.vstart->write(0);
#define VI_ST_WHOLE \
require_vector_novtype(true, false); \