From f8ca42bf489e9cad95a1df27fc405b5d1d8c23ec Mon Sep 17 00:00:00 2001 From: Yunsup Lee Date: Thu, 19 May 2011 10:10:31 -0700 Subject: [PATCH] [sim] vlen calc reflects the hardware --- riscv/processor.cc | 15 ++++++--------- riscv/processor.h | 10 +++++----- 2 files changed, 11 insertions(+), 14 deletions(-) diff --git a/riscv/processor.cc b/riscv/processor.cc index bb1a982..3548810 100644 --- a/riscv/processor.cc +++ b/riscv/processor.cc @@ -34,11 +34,12 @@ processor_t::processor_t(sim_t* _sim, char* _mem, size_t _memsz) memset(counters,0,sizeof(counters)); // vector stuff + vecbanks = 0xff; + vecbanks_count = 8; utidx = -1; vlmax = 8; vl = 0; - nxpr_all = 256; - nfpr_all = 256; + nxfpr_bank = 256; nxpr_use = 0; nfpr_use = 0; for (int i=0; i