Skip to content

Instantly share code, notes, and snippets.

View stffrdhrn's full-sized avatar
🌴
Working on it

Stafford Horne stffrdhrn

🌴
Working on it
View GitHub Profile
Run with:
make check RUNTESTFLAGS="--target_board=or1k-elf-sim"
=== sim Summary ===
# of expected passes 17
or1k-elf-run 0.5
make[3]: Leaving directory '/home/shorne/work/openrisc/build-gdb/sim/testsuite'
@stffrdhrn
stffrdhrn / make-check-howto.txt
Created May 1, 2016 09:46
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
@stffrdhrn
stffrdhrn / mfspr-with-invalid-SPR-address.txt
Created May 3, 2016 20:21
or1k-elf-gdb testsuite failures
target sim ^M
Connected to the simulator.^M
(gdb) load^M
Loading section .vectors, size 0x2000 lma 0x0^M
Loading section .init, size 0x28 lma 0x2000^M
Loading section .text, size 0xfe3c lma 0x2028^M
Loading section .fini, size 0x1c lma 0x11e64^M
Loading section .rodata, size 0x930 lma 0x11e80^M
Loading section .eh_frame, size 0x4 lma 0x147b0^M
Loading section .ctors, size 0x8 lma 0x147b4^M
@stffrdhrn
stffrdhrn / gist:92d00a25973f90cc235c2c91692c40ca
Created May 8, 2016 13:13
gdb openrisc or1k make check
export DEJAGNU=/home/shorne/work/openrisc/or1k-src/site.exp
make check RUNTESTFLAGS="--target_board=or1k-elf-sim"
...
=== gdb Summary ===
# of expected passes 15981
# of unexpected failures 509
# of expected failures 27
This file has been truncated, but you can view the full file.
Test run by shorne on Sun May 8 22:03:11 2016
Target is or1k-unknown-elf
Host is x86_64-pc-linux-gnu
=== gdb tests ===
Schedule of variations:
or1k-elf-sim
Running target or1k-elf-sim
This file has been truncated, but you can view the full file.
## TO BUILD ##
../binutils-gdb/configure --target=or1k-elf --prefix=/opt/shorne/software/or1k --enable-shared --disable-itcl --disable-tk -
-disable-tcl --disable-winsup --disable-gdbtk --disable-libgui --disable-rda --disable-sid --with-sysroot --disable-newlib --dis
able-libgloss --with-system-zlib --enable-sim --disable-or1ksim --enable-cgen-maint
NOTE: --enable-cgen-maint is not needed and requires cgen from cvs
## TO TEST ##
NOTE: need to be in the gdb build director
warning: Register sr not updated
$1 = 49 '1'
(gdb) PASS: gdb.base/call-sc.exp: p/c fun(); call call-sc-tc
call Fun(foo)
warning: Register ppc not updated
warning: Register sr not updated
(gdb) FAIL: gdb.base/call-sc.exp: call Fun(foo); call call-sc-tc
p/c L
$2 = 49 '1'
(gdb) PASS: gdb.base/call-sc.exp: p/c L; call call-sc-tc
This file has been truncated, but you can view the full file.
Test run by shorne on Wed May 11 22:04:21 2016
Target is or1k-unknown-elf
Host is x86_64-pc-linux-gnu
=== gdb tests ===
Schedule of variations:
or1k-elf-sim
Running target or1k-elf-sim
(gdb) PASS: gdb.base/callfuncs.exp: p t_float_complex_many_args(fc1, fc2, fc3, fc4, fc1, fc2, fc3, fc4, fc1, fc2, fc3, fc4, fc1, fc2, fc3, fc4)
p t_float_complex_many_args(fc1, fc1, fc1, fc1, fc1, fc1, fc1, fc1, fc1, fc1, fc1, fc1, fc1, fc1, fc1, fc1)
$43 = 0
(gdb) PASS: gdb.base/callfuncs.exp: p t_float_complex_many_args(fc1, fc1, fc1, fc1, fc1, fc1, fc1, fc1, fc1, fc1, fc1, fc1, fc1, fc1, fc1, fc1)
p t_double_complex_values(dc1, dc2)
That operation is not available on integers of more than 8 bytes.
(gdb) FAIL: gdb.base/callfuncs.exp: p t_double_complex_values(dc1, dc2)
p t_double_complex_values(dc3, dc4)
That operation is not available on integers of more than 8 bytes.
(gdb) FAIL: gdb.base/callfuncs.exp: p t_double_complex_values(dc3, dc4)
--- gdb.sum?dl=0 2016-05-11 22:36:21.920502935 +0900
+++ gdb/testsuite/gdb.sum 2016-05-11 22:12:43.315457249 +0900
@@ -1,4 +1,4 @@
-Test Run By olof on Wed May 11 15:01:20 2016
+Test run by shorne on Wed May 11 22:04:21 2016
Target is or1k-unknown-elf
Host is x86_64-pc-linux-gnu
@@ -943,9 +943,7 @@
PASS: gdb.base/break-inline.exp: break