diff options
author | Dave.Wen <dave.wen@sifive.com> | 2019-04-30 19:27:33 -0700 |
---|---|---|
committer | Dave.Wen <dave.wen@sifive.com> | 2019-04-30 19:27:33 -0700 |
commit | e7a3f6e7f4a847f750830efcbc051354d282d750 (patch) | |
tree | 72dd63660fd020d0fe5a7c8b2247b15d120ea6c2 /riscv/insns/vnclipu_vx.h | |
parent | 65ba44dccfc9d02e5723a467eefd47ac47295e60 (diff) | |
download | spike-e7a3f6e7f4a847f750830efcbc051354d282d750.zip spike-e7a3f6e7f4a847f750830efcbc051354d282d750.tar.gz spike-e7a3f6e7f4a847f750830efcbc051354d282d750.tar.bz2 |
rvv: decouple the vectorUnit to the processor's state.
Diffstat (limited to 'riscv/insns/vnclipu_vx.h')
-rw-r--r-- | riscv/insns/vnclipu_vx.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/riscv/insns/vnclipu_vx.h b/riscv/insns/vnclipu_vx.h index 7e95192..5512e42 100644 --- a/riscv/insns/vnclipu_vx.h +++ b/riscv/insns/vnclipu_vx.h @@ -1,6 +1,6 @@ // vnclipu: vd[i] = clip(round(vs2[i] + rnd) >> rs1[i]) -VRM xrm = STATE.VU.get_vround_mode(); -uint64_t int_max = ~(-1ll << STATE.VU.vsew); +VRM xrm = p->VU.get_vround_mode(); +uint64_t int_max = ~(-1ll << p->VU.vsew); VI_VX_ULOOP ({ uint64_t result = (vs2 + 0llu) << sew; // expend the vs2 size more than SEW @@ -13,7 +13,7 @@ VI_VX_ULOOP // saturation if (result & (uint64_t)(-1ll << sew)){ result = int_max; - STATE.VU.vxsat = 1; + p->VU.vxsat = 1; } vd = result; |