diff options
author | Weiwei Li <liweiwei@iscas.ac.cn> | 2022-04-13 15:22:41 +0800 |
---|---|---|
committer | Weiwei Li <liweiwei@iscas.ac.cn> | 2022-04-14 09:40:17 +0800 |
commit | 750f008e723bb3b20cec41a47ed5cec549447665 (patch) | |
tree | b2f2bc14c74ea90073803517579465c7c7f368a2 /customext/cflush.cc | |
parent | c3c04a8be2c641de2b198b90df6c1538eb204120 (diff) | |
download | spike-750f008e723bb3b20cec41a47ed5cec549447665.zip spike-750f008e723bb3b20cec41a47ed5cec549447665.tar.gz spike-750f008e723bb3b20cec41a47ed5cec549447665.tar.bz2 |
add support for overlap instructions
* add DECLARE_OVERLAP_INSN to bind instructions with extension
* add overlap_list.h to contain the declare of all overlapping instructions
* make func function for overlapping instruction return NULL when the coresponding
extension(s) is not supported.
Diffstat (limited to 'customext/cflush.cc')
-rw-r--r-- | customext/cflush.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/customext/cflush.cc b/customext/cflush.cc index 8b72a97..1a5cfa2 100644 --- a/customext/cflush.cc +++ b/customext/cflush.cc @@ -24,9 +24,9 @@ class cflush_t : public extension_t std::vector<insn_desc_t> get_instructions() { std::vector<insn_desc_t> insns; - insns.push_back((insn_desc_t){0xFC000073, 0xFFF07FFF, custom_cflush, custom_cflush, custom_cflush, custom_cflush}); - insns.push_back((insn_desc_t){0xFC200073, 0xFFF07FFF, custom_cflush, custom_cflush, custom_cflush, custom_cflush}); - insns.push_back((insn_desc_t){0xFC100073, 0xFFF07FFF, custom_cflush, custom_cflush, custom_cflush, custom_cflush}); + insns.push_back((insn_desc_t){true, 0xFC000073, 0xFFF07FFF, custom_cflush, custom_cflush, custom_cflush, custom_cflush}); + insns.push_back((insn_desc_t){true, 0xFC200073, 0xFFF07FFF, custom_cflush, custom_cflush, custom_cflush, custom_cflush}); + insns.push_back((insn_desc_t){true, 0xFC100073, 0xFFF07FFF, custom_cflush, custom_cflush, custom_cflush, custom_cflush}); return insns; } |