Age | Commit message (Collapse) | Author | Files | Lines |
|
* reduce sig_len constraint to 4 bytes
Spike currently asserts that the signature length should always be a multiple of 16-bytes. However, the compliance suite has agreed to upon the signature being a multiple ot 4-bytes. This prevents some of the tests to run on spike since it fails the assertion.
The proposed change fixes this issue and reduces the assertion to 4 bytes.
* Added size argument to htif arguments and zero padding for signature output. Defaultline size-16.
* Modified type of line_size to unsigned.
* Renamed size to granularity.
* Rename granularity to signature-granularity.
Co-authored-by: dracarys99 <spawan1999@gmail.com>
|
|
The new macros IS_ELF_... introduced in 80b5b2f5 were not endian safe.
|
|
Resolves #566
|
|
Rvv fix 2020 10 06
|
|
The original constraint is for baseline u-arch but could be more flexsible
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
|
|
To avoid handling inconsistent csr status when running with reference design
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
|
|
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
|
|
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
|
|
|
|
|
|
This completes the fix in 8d860c190640e19e0f23a21d2479b4a36d13d342
to cover the hypervisor extension case as well.
Fixes #557
|
|
The original insn_t has the upper part with extended signed bit when the
instruction is fetched from mmu_t::refill_icache. It makes the tval of
illegal instruction exception wrong.
ref:
As the spec 3.1.17 says,
after an illegal instruction trap, mtval will contain the shortest of:
1. the actual faulting instruction
2. the first ILEN bits of the faulting instruction
3. the first XLEN bits of the faulting instruction
The value loaded into mtval is right-justified and all unused upper bits
are cleared to zero.
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
|
|
|
|
* Adding symbol lookup when --enable-commitlog is enabled
* Removed the #ifdef RISCV_ENABLE_COMMITLOG for all get_symbol related function
Only retained the in processor.cc where it is called.
Co-authored-by: Shajid Thiruvathodi <sthiruva@valtrix.in>
|
|
* Add core id to lines generated by --log-commits
* Fixing the format specifier for cpuid in log-commits
Co-authored-by: Shajid Thiruvathodi <sthiruva@valtrix.in>
|
|
There is an global 'res' in function and local 'res' in pmpcfg loop.
This makes the 'ret' macro use the local res but what we want is to pass
local result to global 'res'
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
|
|
|
|
It never has effect when V=1.
|
|
It never has effect when V=1.
HFENCE.GVMA and the hgatp CSR must respect it (when V=0).
|
|
|
|
Resolves #551
|
|
Rvv pre 1.0 2020 09 22
|
|
commitlog needs to read all affected csrs but some of them may violate the
permisson.
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
|
|
for each case, use explicit type checking
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
|
|
|
|
Resolves #549
|
|
|
|
|
|
|
|
|
|
|
|
int can only represent 32 bit in lp64 model
when sew is greater than 32, the behavior is undefined
|
|
|
|
get_csr is always called first (and this assumption is pervasively relied
upon), so the checks in set_csr are redundant.
FYI @avpatel
|
|
|
|
Rvv fix 2020 09 08
|
|
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
|
|
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
|
|
This patch does two fixes when H-extension is available:
1. The MEDELEG should allow delegating VIRTUAL_SUPERVISOR_ECALL instead
of SUPERVISOR_ECALL. This was broken after commit 7775c6fb7cc1b.
2. The forced bits in MIDELEG should be cleared when 'H' bit is
cleared in MISA CSR.
Signed-off-by: Anup Patel <anup.patel@wdc.com>
|
|
Rvv pre 1.0 2020 08 27
|
|
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
|
|
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
|
|
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
|
|
vs1 is sub-op
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
|
|
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
|
|
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
|
|
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
|
|
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
|
|
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
|
|
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
|