What are the meaning of "tohost" and ".tohost"?
I've looked up the "riscv_test.h" and "test_macros.h" .
They are located in https://github.com/riscv/riscv-test-env/blob/68cad7baf3ed0a4553fffd14726d24519ee1296a/p/riscv_test.h and https://github.com/riscv/riscv-tests/blob/master/isa/macros/scalar/test_macros.h ,respectly.
But I still wonder that what's the meaning of "tohost" and ".tohost"?
From what I understand tohost is used by the test runner to read the result of the tests.
If tohost & 1 == 1 the result was written, the result is tohost >> 1 if is zero all test passed else is the test number that failed.
See https://github.com/riscv-software-src/riscv-isa-sim/issues/364#issuecomment-607657754