Luke Kenneth Casson Leighton [Tue, 30 Oct 2018 06:23:27 +0000 (06:23 +0000)]
add comment string
Luke Kenneth Casson Leighton [Tue, 30 Oct 2018 06:22:17 +0000 (06:22 +0000)]
add extra unit tests
Luke Kenneth Casson Leighton [Tue, 30 Oct 2018 04:10:31 +0000 (04:10 +0000)]
add VL arg to macro
Luke Kenneth Casson Leighton [Tue, 30 Oct 2018 03:50:56 +0000 (03:50 +0000)]
add isvec args to test elwidth macros
Luke Kenneth Casson Leighton [Mon, 29 Oct 2018 08:10:13 +0000 (08:10 +0000)]
add sv store elementwidth test
Luke Kenneth Casson Leighton [Mon, 29 Oct 2018 05:57:22 +0000 (05:57 +0000)]
add extra ld elwidth tests, add #defines for elwidths
Luke Kenneth Casson Leighton [Mon, 29 Oct 2018 04:51:30 +0000 (04:51 +0000)]
add extra tests, change data (unsigned in places)
Luke Kenneth Casson Leighton [Mon, 29 Oct 2018 04:16:16 +0000 (04:16 +0000)]
add sv_ld_elwidth test
Luke Kenneth Casson Leighton [Mon, 29 Oct 2018 01:35:46 +0000 (01:35 +0000)]
add in TODO list
Luke Kenneth Casson Leighton [Fri, 26 Oct 2018 21:16:53 +0000 (22:16 +0100)]
extend addw bitwidth test to 3 registers
Luke Kenneth Casson Leighton [Fri, 26 Oct 2018 07:03:10 +0000 (08:03 +0100)]
put in stuff that should not be overwritten
put a5a5... into addw elwidth target registers to test if it gets
overwritten
Luke Kenneth Casson Leighton [Fri, 26 Oct 2018 06:57:59 +0000 (07:57 +0100)]
correct addw elwidth test
Luke Kenneth Casson Leighton [Fri, 26 Oct 2018 06:43:51 +0000 (07:43 +0100)]
sv addw variable elwidth unit test
Luke Kenneth Casson Leighton [Fri, 26 Oct 2018 06:17:09 +0000 (07:17 +0100)]
sort out registers and add extra unit tests for add-variable-elwidth
Luke Kenneth Casson Leighton [Fri, 26 Oct 2018 05:46:11 +0000 (06:46 +0100)]
add sv_add_elwidth unit test
Luke Kenneth Casson Leighton [Tue, 16 Oct 2018 22:41:20 +0000 (23:41 +0100)]
modified VL and MVL CSRs to range from 1-XLEN rather than 0-(XLEN-1)
Luke Kenneth Casson Leighton [Tue, 9 Oct 2018 18:34:27 +0000 (19:34 +0100)]
add sv vectorised predicated beq test
Luke Kenneth Casson Leighton [Tue, 9 Oct 2018 10:40:16 +0000 (11:40 +0100)]
alter unit tests to match change in CSR table format
Luke Kenneth Casson Leighton [Sun, 7 Oct 2018 06:12:55 +0000 (07:12 +0100)]
add cleanup and comments to sv lwsp pred test
Luke Kenneth Casson Leighton [Sun, 7 Oct 2018 05:51:29 +0000 (06:51 +0100)]
add predicated version of c.lwsp sv unit test
Luke Kenneth Casson Leighton [Sun, 7 Oct 2018 03:53:18 +0000 (04:53 +0100)]
add 3rd register to c.swsp
Luke Kenneth Casson Leighton [Sun, 7 Oct 2018 03:51:42 +0000 (04:51 +0100)]
add 3 registers to sv c.lwsp
Luke Kenneth Casson Leighton [Sun, 7 Oct 2018 03:50:37 +0000 (04:50 +0100)]
add s.swsp sv test
Luke Kenneth Casson Leighton [Sat, 6 Oct 2018 15:50:27 +0000 (16:50 +0100)]
add sv c_lwsp unit test
Luke Kenneth Casson Leighton [Fri, 5 Oct 2018 04:09:49 +0000 (05:09 +0100)]
whoops overwrote x2
Luke Kenneth Casson Leighton [Thu, 4 Oct 2018 14:38:52 +0000 (15:38 +0100)]
add twin-predicated sv c_mv unit test (no zeroing)
Luke Kenneth Casson Leighton [Thu, 4 Oct 2018 14:18:20 +0000 (15:18 +0100)]
add sv c.mv twin-predication unit test
Luke Kenneth Casson Leighton [Tue, 2 Oct 2018 11:22:33 +0000 (12:22 +0100)]
actually sv vector-vector add worked fine
(forgot to set CSR on 2nd register)
Luke Kenneth Casson Leighton [Tue, 2 Oct 2018 07:32:34 +0000 (08:32 +0100)]
add rv64ud sv fadd test, shows flaw in loop for 3-arg operands
Luke Kenneth Casson Leighton [Mon, 1 Oct 2018 13:58:03 +0000 (14:58 +0100)]
add vector-vector sv add
Luke Kenneth Casson Leighton [Mon, 1 Oct 2018 13:41:45 +0000 (14:41 +0100)]
add sv addi predicated unit test, including inversion and zeroing
Luke Kenneth Casson Leighton [Mon, 1 Oct 2018 11:12:10 +0000 (12:12 +0100)]
add extra sv test comments
Luke Kenneth Casson Leighton [Mon, 1 Oct 2018 11:02:56 +0000 (12:02 +0100)]
update sv test comments
Luke Kenneth Casson Leighton [Mon, 1 Oct 2018 11:00:31 +0000 (12:00 +0100)]
add sv scalar src test which highlighted flaw in spike-sv
Luke Kenneth Casson Leighton [Mon, 1 Oct 2018 10:49:12 +0000 (11:49 +0100)]
add redirection sv unit test
Luke Kenneth Casson Leighton [Mon, 1 Oct 2018 08:54:19 +0000 (09:54 +0100)]
augment sv_addi test using macros
Luke Kenneth Casson Leighton [Mon, 1 Oct 2018 08:15:05 +0000 (09:15 +0100)]
add first unit test for simple-v
Andrew Waterman [Mon, 24 Sep 2018 04:12:23 +0000 (21:12 -0700)]
bump env
Tim Newsome [Thu, 13 Sep 2018 23:02:22 +0000 (16:02 -0700)]
Assert if HiFive1 program is too large.
Tim Newsome [Thu, 13 Sep 2018 22:55:17 +0000 (15:55 -0700)]
Put debug test stack in data instead of text
Andrew Waterman [Sat, 8 Sep 2018 22:10:44 +0000 (15:10 -0700)]
Merge branch 'tommythorn-master'
Tommy Thorn [Sat, 8 Sep 2018 16:00:04 +0000 (09:00 -0700)]
RV64 s{ll,ra,rl}w tests with non-canonical values
Andrew Waterman [Fri, 7 Sep 2018 01:45:14 +0000 (18:45 -0700)]
Revert "breakpoint.S: Don't assume trigger is hardwired to breakpoint (#158) (#159)"
This reverts commit
901a2694d5384e4ef9af8e4fb0c9a07eb24d0028,
under the advisement of @tommythorn in #158.
Tommy Thorn [Thu, 6 Sep 2018 18:07:42 +0000 (11:07 -0700)]
breakpoint.S: Don't assume trigger is hardwired to breakpoint (#158) (#159)
Tim Newsome [Mon, 3 Sep 2018 22:03:50 +0000 (15:03 -0700)]
Merge pull request #156 from riscv/PrivChange
Reset address translation/perms before PrivChange
Tim Newsome [Fri, 31 Aug 2018 19:53:25 +0000 (12:53 -0700)]
Fix CustomRegisterTest.
gdb in riscv-tools doesn't automatically create a "custom" group like
mainline gdb does.
Tim Newsome [Mon, 27 Aug 2018 20:17:51 +0000 (13:17 -0700)]
Add test case for `riscv expose_custom`.
Only works against spike, where I've implemented some custom debug
registers to test against.
Tim Newsome [Tue, 28 Aug 2018 20:56:25 +0000 (13:56 -0700)]
Reset address translation/perms before PrivChange
We already did this for PrivTest.
Hopefully solves #155, but I haven't been able to reproduce it.
Tim Newsome [Tue, 28 Aug 2018 00:02:37 +0000 (17:02 -0700)]
Neuter TriggerStoreAddressInstant
Now that OpenOCD can tell gdb exactly which watchpoint was hit, this
test exposes another problem:
https://github.com/riscv/riscv-openocd/issues/295
For now neuter the test so the testsuite can still be useful.
Tim Newsome [Mon, 27 Aug 2018 20:58:09 +0000 (13:58 -0700)]
Make pylint happy.
Andrew Waterman [Sat, 25 Aug 2018 11:33:01 +0000 (04:33 -0700)]
Temporarily disabling PrivChange test
@timsifive we are debugging intermittent failures.
Tim Newsome [Fri, 24 Aug 2018 00:08:18 +0000 (17:08 -0700)]
Make pylint happy with change
d1d2d953b5016b465.
Tim Newsome [Fri, 24 Aug 2018 00:04:57 +0000 (17:04 -0700)]
Get all of the log into the final log file
This allows me to see the final valgrind output on OpenOCD, so I can
watch for memory leaks when using --server_cmd "valgrind
--leak-check=full openocd".
Tim Newsome [Thu, 23 Aug 2018 23:52:39 +0000 (16:52 -0700)]
Merge pull request #153 from dmitryryzhov/rtos-switch-active-thread
Add debug test, which checks that openocd correctly switch active thread on any hart halt.
Tim Newsome [Wed, 22 Aug 2018 20:47:26 +0000 (13:47 -0700)]
Merge branch 'master' of https://github.com/riscv/riscv-tests
Tim Newsome [Wed, 22 Aug 2018 20:46:32 +0000 (13:46 -0700)]
Disable MulticoreRunHaltStepiTest
It's failing (intermittently?). See eg.
https://travis-ci.org/riscv/riscv-tools/builds/
418928412?utm_source=github_status&utm_medium=notification
Dmitry Ryzhov [Wed, 22 Aug 2018 15:09:33 +0000 (18:09 +0300)]
Add debug test, which checks that openocd correctly switch active thread on any hart halt.
Srivatsa Yogendra [Tue, 21 Aug 2018 20:14:07 +0000 (13:14 -0700)]
Changing the register mstatus is read into (#152)
The mstatus reading overwrites the expected user mode cause value.
Andrew Waterman [Tue, 21 Aug 2018 02:10:05 +0000 (19:10 -0700)]
Revert "Fix to solve the failing tests shamt, csr and scall (#151)"
This reverts commit
31a91823b7c7becacd06c9c32e44180eea5e4fe7.
These changes should be made to the test environment, not the tests
themselves.
Srivatsa Yogendra [Sat, 18 Aug 2018 01:49:16 +0000 (18:49 -0700)]
Fix to solve the failing tests shamt, csr and scall (#151)
* making mtvec_handler global
* Adding the pmp configuration inst
The PMP config instructions are added as the test jumps to user mode
* Adding pmp config inst
Adding pmp config instructions as the test jumps to user mode
* changing to PMP macros
* changing to PMP Macros
* moving the #endif after pmp initialization
* Removing the unwanted label
Srivatsa Yogendra [Fri, 17 Aug 2018 19:02:57 +0000 (12:02 -0700)]
making mtvec_handler global (#150)
Tim Newsome [Wed, 8 Aug 2018 21:33:50 +0000 (14:33 -0700)]
Add jump/hbreak test.
Andrew Waterman [Mon, 9 Jul 2018 21:25:46 +0000 (14:25 -0700)]
Check that SC yields the load reservation
https://github.com/riscv/riscv-isa-manual/commit/
03a5e722fc0fe7b94dd0a49f550ff7b41a63f612
Tim Newsome [Tue, 3 Jul 2018 20:54:13 +0000 (13:54 -0700)]
rwatch/watch on explicit address
Newer gdb requires more debug info in order to "watch data" in this
test. I'm not sure how to make that debug info happen, so instead we
tell it the address to use.
Tim Newsome [Mon, 18 Jun 2018 22:03:05 +0000 (15:03 -0700)]
Add reproduce line to the end of debug test logs
Tim Newsome [Mon, 21 May 2018 18:56:39 +0000 (11:56 -0700)]
Merge pull request #141 from riscv/mrhstest
Fix MulticoreRunHaltStepiTest
Tim Newsome [Sat, 19 May 2018 01:12:00 +0000 (18:12 -0700)]
Fix MulticoreRunHaltStepiTest
The test actually wasn't checking interrupt counts at all. Fixing it
required some other changes:
Make sure all harts get to run
Add some retries, since on a loaded machine against spike both harts
might not get to run, even if you give spike a generous amount of time
to do so.
Megan Wachs [Tue, 15 May 2018 17:19:08 +0000 (10:19 -0700)]
Merge pull request #139 from riscv/debug-tests-more-single
Mark more Debug tests as "Single Hart"
Megan Wachs [Mon, 14 May 2018 23:04:10 +0000 (16:04 -0700)]
Merge remote-tracking branch 'origin/downloadtest' into debug-tests-more-single
Tim Newsome [Mon, 14 May 2018 22:14:47 +0000 (15:14 -0700)]
Make DownloadTest properly park other harts.
Megan Wachs [Mon, 14 May 2018 21:34:58 +0000 (14:34 -0700)]
debug: remove some unintentionally added newlines
Megan Wachs [Mon, 14 May 2018 15:46:03 +0000 (08:46 -0700)]
debug: Fixing the non-RTOS behavior for DownloadTest
Megan Wachs [Fri, 11 May 2018 16:40:10 +0000 (09:40 -0700)]
debug: mark more tests as single-hart tests
Megan Wachs [Fri, 11 May 2018 16:39:48 +0000 (09:39 -0700)]
debug: output some more useful info into the post-mortem data
Christopher Celio [Tue, 1 May 2018 00:03:50 +0000 (17:03 -0700)]
[rv64ua/lrsc] Initialize memory read out. (#135)
* [rv64ua/lrsc] Initialize memory read out.
Even though the load contents are discarded, this un-initialized memory value
can lead to a divergence for co-simulation between two different RISC-V designs.
* [rv64ua/lrsc] Use .skip instead of .align.
Tim Newsome [Mon, 30 Apr 2018 19:54:03 +0000 (12:54 -0700)]
Fix formatting to make pylint happy.
Megan Wachs [Sun, 29 Apr 2018 03:38:37 +0000 (20:38 -0700)]
Merge pull request #132 from riscv/debug-clear-satp
debug: need to clear satp before changing priv
Megan Wachs [Fri, 27 Apr 2018 23:52:43 +0000 (16:52 -0700)]
debug: need to clear satp before changing priv
ISA Manual does not require this register to be reset, and attempting to execute code with VM on when VM hasn't been set up is going to just lead to sadness.
Megan Wachs [Fri, 27 Apr 2018 22:18:57 +0000 (15:18 -0700)]
Merge pull request #125 from riscv/debug-delete-sim
Delete E300Sim.py
Megan Wachs [Fri, 27 Apr 2018 22:18:44 +0000 (15:18 -0700)]
Merge pull request #130 from riscv/trap_entry_align-1
debug: add missing align directive on trap_entry
Megan Wachs [Fri, 27 Apr 2018 21:42:34 +0000 (14:42 -0700)]
debug: add missing align directive on trap_entry
Tim Newsome [Tue, 24 Apr 2018 18:21:27 +0000 (11:21 -0700)]
Fix race when making logs directory
Megan Wachs [Thu, 19 Apr 2018 17:46:23 +0000 (10:46 -0700)]
Delete E300Sim.py
This file is wrong (the .cfg file isn't right) and not used by anything.
Tim Newsome [Mon, 16 Apr 2018 19:14:13 +0000 (12:14 -0700)]
Merge pull request #123 from riscv/gdb_timeout
Compute gdb command timeout based on ops estimate
Tim Newsome [Mon, 9 Apr 2018 20:09:55 +0000 (13:09 -0700)]
Compute gdb command timeout based on ops estimate
The caller of gdb.command() should estimate how much work gdb needs to
do, and testlib then scales this up proportional to the general gdb
timeout we configured. This hopefully allows us to configure a tighter
timeout, so we don't have to have a multi-hour timeout just for
something that takes long like `load` on a really slow simulator.
Hopefully this addresses #122.
Andrei Tatarnikov [Mon, 9 Apr 2018 18:24:04 +0000 (21:24 +0300)]
Fix #120: Instructions 'sll' are replaced with 'slli' in rv64ui/slli.S (#121)
Tim Newsome [Mon, 2 Apr 2018 21:56:45 +0000 (14:56 -0700)]
Use `gdb_report_register_access_error enable`
Tim Newsome [Tue, 27 Feb 2018 22:28:26 +0000 (14:28 -0800)]
Test debug authentication.
Also halt instead of reset spike targets, which tests a more complicated
code path.
Tim Newsome [Fri, 23 Mar 2018 20:27:52 +0000 (13:27 -0700)]
Print log filename at the end of the log.
This makes it much easier to look at a log if you see a failure
scrolling by on your terminal.
Andrew Waterman [Wed, 21 Mar 2018 23:54:08 +0000 (16:54 -0700)]
Make misa.C test conform to Hauser proposal
See https://github.com/riscv/riscv-isa-manual/commit/
0472bcdd166f45712492829a250e228bb45fa5e7
Palmer Dabbelt [Wed, 21 Mar 2018 01:14:18 +0000 (18:14 -0700)]
Merge pull request #119 from rishikhan/master
Update Makefile to allow for RISCV_PREFIX to be set by the configure
rishi [Mon, 19 Mar 2018 16:02:53 +0000 (12:02 -0400)]
Update Makefile to allow for RISCV_PREFIX to be set by the configure --target
Tim Newsome [Mon, 19 Feb 2018 21:31:40 +0000 (13:31 -0800)]
Test debugging with/without a program buffer
Tim Newsome [Thu, 1 Mar 2018 23:05:45 +0000 (15:05 -0800)]
Ensure an error when reading a non-existent CSR.
Andrew Waterman [Tue, 27 Feb 2018 07:25:34 +0000 (01:25 -0600)]
Add test for clearing misa.C while PC is misaligned (#117)
See https://github.com/riscv/riscv-isa-manual/pull/139
Tim Newsome [Fri, 9 Feb 2018 16:54:59 +0000 (08:54 -0800)]
Test resuming from a trigger.
Tim Newsome [Wed, 7 Feb 2018 21:48:54 +0000 (13:48 -0800)]
Link scripts shouldn't be executable.
Tim Newsome [Mon, 8 Jan 2018 20:36:49 +0000 (12:36 -0800)]
Deal with gdb reporting pmpcfg0 not existing.
It's an optional register.
Tim Newsome [Fri, 5 Jan 2018 22:25:57 +0000 (14:25 -0800)]
Add test for multicore failure
Specifically, make sure that after resuming all cores, and halting core
0, that OpenOCD's poll() doesn't mess up the currently selected hart to
the point where memory accesses intended for core 0 go to core 1.
Andrew Waterman [Wed, 3 Jan 2018 05:13:38 +0000 (21:13 -0800)]
Test access exception behavior for illegal addresses (#111)
OK'd by @palmer-dabbelt