tests/tcg/cris: cleanup sys.c
authorAlex Bennée <alex.bennee@linaro.org>
Fri, 7 Dec 2018 15:16:43 +0000 (15:16 +0000)
committerAlex Bennée <alex.bennee@linaro.org>
Tue, 12 Mar 2019 17:05:21 +0000 (17:05 +0000)
commit6b970dd62cb67375f6267294d38798d9199e487b
tree591f2d17912539ef2e9f59fcb84c1a48d4dac7f4
parent824ad15f1cbe6ef10a0423d0529345cfeb34129b
tests/tcg/cris: cleanup sys.c

This is a mini library which provides helper functions to the tests
which are all currently written in assembly. A bunch of minor changes:

      - removed libc related headers (fedora-cris-cross is a system compiler)
      - re-organised the functions to avoid forward declarations
      - cleaned up brace usage
      - restored exit for _fail case
      - removed tabs and fixed indentation

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
tests/tcg/cris/sys.c