aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWeiwei Li <liweiwei@iscas.ac.cn>2023-03-16 10:04:05 +0800
committerWeiwei Li <liweiwei@iscas.ac.cn>2023-03-16 10:04:43 +0800
commit00066cb3655314f07f7b13f225d98e66d32bfd87 (patch)
treec3d2393230960f344b4f7bd68f4fdc630caad27f
parenta35865f0f5559d8af81920b2d832e15af6caa123 (diff)
downloadriscv-isa-sim-00066cb3655314f07f7b13f225d98e66d32bfd87.zip
riscv-isa-sim-00066cb3655314f07f7b13f225d98e66d32bfd87.tar.gz
riscv-isa-sim-00066cb3655314f07f7b13f225d98e66d32bfd87.tar.bz2
Fix the relationship between Zce and Zcf
-rw-r--r--riscv/isa_parser.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/riscv/isa_parser.cc b/riscv/isa_parser.cc
index 6aeee14..4fc53f7 100644
--- a/riscv/isa_parser.cc
+++ b/riscv/isa_parser.cc
@@ -157,7 +157,7 @@ isa_parser_t::isa_parser_t(const char* str, const char *priv)
extension_table[EXT_ZCB] = true;
extension_table[EXT_ZCMT] = true;
extension_table[EXT_ZCMP] = true;
- if (extension_table['F'])
+ if (extension_table['F'] && max_xlen == 32)
extension_table[EXT_ZCF] = true;
} else if (ext_str == "zca") {
extension_table[EXT_ZCA] = true;