diff options
author | Rupert Swarbrick <rswarbrick@gmail.com> | 2022-02-18 15:45:21 +0000 |
---|---|---|
committer | Rupert Swarbrick <rswarbrick@gmail.com> | 2022-03-12 21:51:01 +0000 |
commit | cb632586bdb1b57ea4e5a5543e21bbb257e47f3b (patch) | |
tree | 17720758321ebccff687f9d642ac5d14c49df95b /riscv/insns/vmv_x_s.h | |
parent | 59ec157568d2a52feeec568ac042362db1c5ddbc (diff) | |
download | spike-cb632586bdb1b57ea4e5a5543e21bbb257e47f3b.zip spike-cb632586bdb1b57ea4e5a5543e21bbb257e47f3b.tar.gz spike-cb632586bdb1b57ea4e5a5543e21bbb257e47f3b.tar.bz2 |
Construct an isa_parser_t and pass it to processor_t constructor
This is a minor change, turning processor_t from a child class of
isa_parser_t into a class that contains an isa_parser_t as a field.
The point is that it is a step toward separating out
"configuration" (and ISA string parsing) from processor state. This
should be helpful for rejigging things so that we construct more from
a supplied device tree.
Diffstat (limited to 'riscv/insns/vmv_x_s.h')
-rw-r--r-- | riscv/insns/vmv_x_s.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/riscv/insns/vmv_x_s.h b/riscv/insns/vmv_x_s.h index 39752f9..f0e805b 100644 --- a/riscv/insns/vmv_x_s.h +++ b/riscv/insns/vmv_x_s.h @@ -1,7 +1,7 @@ // vmv_x_s: rd = vs2[rs1] require_vector(true); require(insn.v_vm() == 1); -uint64_t xmask = UINT64_MAX >> (64 - P.get_max_xlen()); +uint64_t xmask = UINT64_MAX >> (64 - P.get_isa().get_max_xlen()); reg_t rs1 = RS1; reg_t sew = P.VU.vsew; reg_t rs2_num = insn.rs2(); @@ -20,7 +20,7 @@ if (!(rs1 >= 0 && rs1 < (P.VU.get_vlen() / sew))) { WRITE_RD(P.VU.elt<int32_t>(rs2_num, rs1)); break; case e64: - if (P.get_max_xlen() <= sew) + if (P.get_isa().get_max_xlen() <= sew) WRITE_RD(P.VU.elt<uint64_t>(rs2_num, rs1) & xmask); else WRITE_RD(P.VU.elt<uint64_t>(rs2_num, rs1)); |