Update cv32e40s csr access test
Created by: silabs-krdosvik
What this PR does:
- update gen_csr_access_test script:
- make it possible to specify input path for the yaml file
- make sure we use the m4 yaml file if the m4 flag is on
- update help/args description
- cv32e40s_csr_access_test:
- update the file by using an updated m4 yaml file (https://github.com/openhwgroup/cv32e40s/blob/master/yaml/csr.yaml.m4, will make a PR for this in the cv32e40s repo)
- test.yaml
- make sure we dont let the compiler optimize the code. The optimization changes the bne instructions to a cm.jt, and consequently generates an infinit loop.
Extra: Tried rebasing, which almost work (but eventually ended up with a mess). So unless anyone complains about the commits, I will let it be.
This PR is related to another PR in the cv32e40x repo: https://github.com/openhwgroup/cv32e40x/pull/853 (which initially was in the *s repo (https://github.com/openhwgroup/cv32e40s/pull/453))