Skip to content

Instantly share code, notes, and snippets.

@stffrdhrn
Created May 1, 2016 09:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stffrdhrn/37f77ed54745deedf47356a4a8b31124 to your computer and use it in GitHub Desktop.
Save stffrdhrn/37f77ed54745deedf47356a4a8b31124 to your computer and use it in GitHub Desktop.
Running or1k gdb sim tests
# after configuring and building openrisc gdb with --enable-sim or1k or or1ksim
# Go into the gdb directly containing the make file
# Why? we go into this directly to make sure we are just running gdb tests, otherwise we run all tests
cd {build-gdb}/gdb/
## edit testsuite/site.exp #
# Add a line linkinging in boards directly from (https://github.com/openrisc/or1k-src/tree/or1k/boards)
# Why? the boards directory is used by test suite dejagnu. The board argumented use in the make check below
# loadd the board file which tells the test suite details of how to load the target under test. In this case
# the simulator.
# Add this line to site.exp
lappend boards_dir {or1k-src}/boards
## Run the test
make check RUNTESTFLAGS="--target_board=or1k-elf-sim"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment