Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rv32imc C.SWSP test5 writes a word outside the binary #37

Closed
astimonov opened this issue Jan 31, 2019 · 3 comments · Fixed by #101
Closed

rv32imc C.SWSP test5 writes a word outside the binary #37

astimonov opened this issue Jan 31, 2019 · 3 comments · Fixed by #101
Labels
bug-fix a PR with relevant small changes or fixed a bug

Comments

@astimonov
Copy link

Related issue: #5
https://github.com/riscv/riscv-compliance/blob/d8e99ee55d5fa3460c0a2f0898dd917a616763fb/riscv-test-suite/rv32imc/src/C-SWSP.S#L86

The test performs a write to offset 252, which is outside of section test_data (32 words).

@allenjbaum
Copy link
Collaborator

This does need to be fixed; if we are only testing signatures within the test_data section, then this test is effectively bypassed, since its signature isn't checked

@eroom1966
Copy link
Collaborator

eroom1966 commented Dec 10, 2019

This is a great catch, and more importantly indicates the necessity of the mutation fault testing to be completed for all suites - up until now we only checked this for the RV32I tests

Can somebody please fix the test and issue a pull request ?

@allenjbaum
Copy link
Collaborator

allenjbaum commented Dec 11, 2019 via email

@neelgala neelgala mentioned this issue Mar 19, 2020
@neelgala neelgala added the bug-fix a PR with relevant small changes or fixed a bug label Mar 19, 2020
neelgala added a commit that referenced this issue Mar 25, 2020
Changes in this pull-request:

    * restructuring the riscv-test-suite to indicate clearly what is deprecated, wip and usable
      tests.
    * based on the above fixed the directory structure for riscv-targets where-ever applicable. Only
      tested riscvOVPsim and spike.
    * fixed script bugs for spike as well
    * renamed rv32i/I-IO.S to rv32i/I-IO-01.S along with necessary changes to the reference files
      and Makefrag
    * renamed mbadaddr csr to mtval as raised in issue #31
    * C.SWSP-01.S test updated to fix issue #37

Close: #8 , #31 , #30 , #32 , #33 , #37, #47 , #67 , #96
pawks pushed a commit to pawks/riscv-arch-test that referenced this issue Nov 10, 2022
Changes in this pull-request:

    * restructuring the riscv-test-suite to indicate clearly what is deprecated, wip and usable
      tests.
    * based on the above fixed the directory structure for riscv-targets where-ever applicable. Only
      tested riscvOVPsim and spike.
    * fixed script bugs for spike as well
    * renamed rv32i/I-IO.S to rv32i/I-IO-01.S along with necessary changes to the reference files
      and Makefrag
    * renamed mbadaddr csr to mtval as raised in issue riscv-non-isa#31
    * C.SWSP-01.S test updated to fix issue riscv-non-isa#37

Close: riscv-non-isa#8 , riscv-non-isa#31 , riscv-non-isa#30 , riscv-non-isa#32 , riscv-non-isa#33 , riscv-non-isa#37, riscv-non-isa#47 , riscv-non-isa#67 , riscv-non-isa#96
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug-fix a PR with relevant small changes or fixed a bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants