aboutsummaryrefslogtreecommitdiff
path: root/riscv/processor.h
diff options
context:
space:
mode:
authorAndrew Waterman <andrew@sifive.com>2022-05-12 14:06:27 -0700
committerAndrew Waterman <andrew@sifive.com>2022-05-12 14:22:45 -0700
commit68b20a9b8af4e9adbff9cccaef2b7c6b2c8ec190 (patch)
tree62c47d77751aa00ba29e7c14a624868d9031af4c /riscv/processor.h
parent11f5942b7d8211e61b5ad9259d118033692c0759 (diff)
downloadspike-68b20a9b8af4e9adbff9cccaef2b7c6b2c8ec190.zip
spike-68b20a9b8af4e9adbff9cccaef2b7c6b2c8ec190.tar.gz
spike-68b20a9b8af4e9adbff9cccaef2b7c6b2c8ec190.tar.bz2
Remove insn_func_t::supported field
The field is rendered unnecessary by 11f5942b7d8211e61b5ad9259d118033692c0759. Undoes some changes from 750f008e723bb3b20cec41a47ed5cec549447665.
Diffstat (limited to 'riscv/processor.h')
-rw-r--r--riscv/processor.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/riscv/processor.h b/riscv/processor.h
index 96fdc54..ec1b400 100644
--- a/riscv/processor.h
+++ b/riscv/processor.h
@@ -29,7 +29,6 @@ reg_t illegal_instruction(processor_t* p, insn_t insn, reg_t pc);
struct insn_desc_t
{
- bool supported;
insn_bits_t match;
insn_bits_t mask;
insn_func_t rv32i;
@@ -39,9 +38,6 @@ struct insn_desc_t
insn_func_t func(int xlen, bool rve)
{
- if (!supported)
- return NULL;
-
if (rve)
return xlen == 64 ? rv64e : rv32e;
else
@@ -50,7 +46,7 @@ struct insn_desc_t
static insn_desc_t illegal()
{
- return {true, 0, 0, &illegal_instruction, &illegal_instruction, &illegal_instruction, &illegal_instruction};
+ return {0, 0, &illegal_instruction, &illegal_instruction, &illegal_instruction, &illegal_instruction};
}
};