resources: Move all single source examples from main repo here

This should make it easy to add either user or baremetal test programs
for any ISA.

Another major advantage is the ability to build every single test
program in one go, which makes it much more likely that we will notice
when they break on new compilers.

In this setup, a single source file can be used for both userland and
baremetal. Baremetal tests must be currently very basic however, since
there is no standard library support. However this already covers the
common use case of testing m5ops and ARM semihosting, e.g. m5_exit.c
runs on both userland and baremetal on ARM.

The initial test programs added are hello worlds to test the framework
itself, m5ops and arm semihosting SYS_EXIT.

Change-Id: Ib503b45b2a3d4ee12d5dc05986e26629ea16c38d
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5-resources/+/32074
Reviewed-by: Bobby R. Bruce <bbruce@ucdavis.edu>
Maintainer: Bobby R. Bruce <bbruce@ucdavis.edu>
Tested-by: Bobby R. Bruce <bbruce@ucdavis.edu>
31 files changed
tree: 753c640305b23a6bd0b671dc3279207853799400
  1. src/
  2. .gitignore
  3. README.md