riscv-tests icon indicating copy to clipboard operation
riscv-tests copied to clipboard

What are the meaning of "tohost" and ".tohost"?

Open clx782782 opened this issue 7 years ago • 2 comments

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"?

clx782782 avatar May 06 '18 07:05 clx782782

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.

konkitoman avatar Feb 18 '25 21:02 konkitoman

See https://github.com/riscv-software-src/riscv-isa-sim/issues/364#issuecomment-607657754

pdonahue-ventana avatar Feb 18 '25 21:02 pdonahue-ventana