Browse Source

fixes to correctly simulate the vector unit

confprec
Yunsup Lee 13 years ago
parent
commit
4944ab3c02
  1. 2
      README
  2. 2
      riscv/decode.h
  3. 2
      riscv/processor.cc

2
README

@ -1,7 +1,7 @@
==========================================================================
RISC-V ISA Simulator
==========================================================================
# Author : Andrew Waterman
# Author : Andrew Waterman, Yunsup Lee
# Date : June 19, 2011
# Version : (under version control)

2
riscv/decode.h

@ -152,6 +152,8 @@ public:
}
write_port_t<T> write_port(size_t i)
{
if (zero_reg)
const_cast<T&>(data[0]) = 0;
return write_port_t<T>(data[i]);
}
const T& operator [] (size_t i) const

2
riscv/processor.cc

@ -299,6 +299,8 @@ reg_t processor_t::get_pcr(int which)
return pcr_k1;
case PCR_VECBANK:
return vecbanks;
case PCR_VECCFG:
return nfpr_use << 18 | nxpr_use << 12 | vl;
case PCR_TOHOST:
return tohost;
case PCR_FROMHOST:

Loading…
Cancel
Save