Age | Commit message (Collapse) | Author | Files | Lines |
|
log file
Quick and dirty fix for https://github.com/riscv-software-src/riscv-tests/issues/520
|
|
This is taking into account that the hardware limits count to 1.
Signed-off-by: liangzhen <zhen.liang@spacemit.com>
|
|
Make the non-existent csr configurable
|
|
Make CLINT address configurable
|
|
Signed-off-by: liangzhen <zhen.liang@spacemit.com>
|
|
Signed-off-by: liangzhen <zhen.liang@spacemit.com>
|
|
Test behavior when a hart becomes unavailable while halted.
|
|
Resolves #510.
|
|
Disable timer interrupt to fix some bugs
|
|
Signed-off-by: liangzhen <zhen.liang@spacemit.com>
|
|
debug: Add Openocd.set_available()
|
|
debug: Better interlock when interacting with gdb CLI.
|
|
This helper uses dmi_write commands to mark harts
available/unavailable.
|
|
debug: Make Openocd.targets() tolerate blank lines.
|
|
debug: Fix interrupt_all() to restore state.
|
|
Actually wait for the command to be echoed back. This means we won't be
confused if there are extra newlines in gdb output.
|
|
|
|
|
|
This lets you reproduce a test running on a specific hart.
|
|
During the github workflow this character is \n, while on my computer
it's ' '. I'm sure there's a good reason for that, but it doesn't seem
worth figuring out what that reason is.
|
|
|
|
Just doing this to make a change in the debug files, which should now
cause the pylint workflow to execute.
|
|
They have issues when run in a github workflow.
|
|
debug: Test OpenOCD behavior when harts become unavailable, using new spike mechanism
|
|
Use new spike mechanism to test OpenOCD behavior when a hart becomes
unavailable, and then available again.
|
|
Use new spike mechanism to test OpenOCD behavior when the current hart
becomes unavailable while running.
Create ThreadTerminated exception.
|
|
Use the new spike mechanism to test OpenOCD behavior when a hart becomes
unavailable while running.
Create CommandException.
|
|
It's a bit messy to read the log file to get the output, but it seems to
be flushed often so that this works.
Also, added the `targets` method for retrieving the list of targets,
and `wait_until_running` method to wait until all targets are in a
running state.
|
|
|
|
|
|
|
|
Just so it's easier to quickly comment out code and hard-code the target
to use without pylint complaining. This really should be a command line
option.
|
|
debug: flushregs -> maintenance flush register-cache
|
|
flushregs is deprecated.
|
|
* Add an exclude list for known failing Hifive1 tests
This commit adds a list of known failing tests based on: https://github.com/riscv/riscv-openocd/issues/869#issue-1769176709
* Fix name of the HiFive1 flash target
Signed-off-by: Marek Vrbka <133884222+MarekVCodasip@users.noreply.github.com>
---------
Signed-off-by: Marek Vrbka <133884222+MarekVCodasip@users.noreply.github.com>
|
|
change warning check in RepeatReadTest
|
|
debug: Don't rely on RISCV env
|
|
|
|
Fix for test program compilation failures due to lack of `zicsr` extension in `-march=rvXX...`
|
|
That made sense when mostly people used riscv-tools, but now they get
tools from all sorts of places and most of them are suitable for the
debug tests.
Also document RISCV_TESTS_DEBUG_GCC and RISCV_TESTS_DEBUG_GDB
environment variables in the README.
The github workflows that rely on these tests don't use the Makefile,
but instead invoke gdbserver.py directly, so they're not affected by
this change.
Fixes #481
|
|
|
|
|
|
Github workflow to run pylint against debug tests
|
|
I'm using this to greatly reduce the timeout when I'm reproducing a
failure I know is going to time out.
|
|
debug: optimize the FreeRtosTest case.
|
|
|
|
Add a way to exclude tests by specifying an exclusion file
|
|
This patch adds a way to specify a yaml file which specifies either
for each target individually or for all targets to exclude tests.
Example file format is included in excluded.yaml.example.
|
|
To make sure the rtos module of OpenOCD works well.
Signed-off-by: Chao Du <duchao@eswincomputing.com>
|
|
If the environment variables aren't set, then use the same defaults as
previously.
My current set of tools use riscv64-elf-gcc and riscv64-elf-gdb, and
this makes it trivial to use them.
|