diff options
author | Alasdair <alasdair.armstrong@cl.cam.ac.uk> | 2024-05-09 20:07:30 +0100 |
---|---|---|
committer | Bill McSpadden <bill@riscv.org> | 2024-05-12 14:36:33 -0500 |
commit | e1242d851d6b27b357bfb31d46c8f08e18fb768b (patch) | |
tree | d85a9cf6756e5e42d2ceb38cadd2c65c02b560bc /model/riscv_insts_cfext.sail | |
parent | 82acf052d4392f0662fa62cccea2353d57b4145a (diff) | |
download | sail-riscv-e1242d851d6b27b357bfb31d46c8f08e18fb768b.zip sail-riscv-e1242d851d6b27b357bfb31d46c8f08e18fb768b.tar.gz sail-riscv-e1242d851d6b27b357bfb31d46c8f08e18fb768b.tar.bz2 |
Refactor MUL instruction
This instruction had a bit of a case of 'boolean blindness' code smell,
where the mul operation was represented as a triple of booleans. This
commit refactors the implemention to use a struct with named fields for
high, signed_rs1, and signed_rs2.
The C_MUL instruction in Zcb also needs to be changed appropriately
The mul_op struct was added in riscv_types
While there do some housekeeping w.r.t the comment about a workaround for
Sail < 0.15.1, as this is no longer needed.
Diffstat (limited to 'model/riscv_insts_cfext.sail')
0 files changed, 0 insertions, 0 deletions