riscv / riscv-test-env

https://jira.riscv.org/browse/RVG-141
Other
42 stars 107 forks source link

Make vm.c sample functional and add suggested build flags #6

Closed jrrk closed 6 years ago

jrrk commented 6 years ago

This test does not appear to compile, and no indication is given what flags should be used. There appears to be a couple of lines missing in the header of the code, compared to similar examples. This appears to do something meaningful in the simulator and shows a degree of function under gdb, but the latter seems to get confused when virtual memory is being debugged. I would be grateful for your input as the lack of a working VM test is hampering my efforts to update my supervisor mode software to the latest Rocket release.

aswaterman commented 6 years ago

vm.c isn't a standalone test. It's one piece of the virtual-memory test environment, which is used in building some of the tests in riscv-tests. Tests like rv64ui-v-addi are built using the virtual-memory test environment.

jrrk commented 6 years ago

Mea culpa. I should have realized that such an important part of the functionality must be tested thoroughly.