Home
last modified time | relevance | path

Searched full:sbi (Results 1 – 21 of 21) sorted by relevance

/kvm-unit-tests/riscv/
H A Dunittests.cfg16 # Set $FIRMWARE_OVERRIDE to /path/to/firmware to select the SBI implementation.
17 [sbi]
18 file = sbi.flat
20 groups = sbi
24 groups = isa sbi
H A DMakefile14 tests += $(TEST_DIR)/sbi.$(exe)
21 $(TEST_DIR)/sbi-deps += $(TEST_DIR)/sbi-asm.o
22 $(TEST_DIR)/sbi-deps += $(TEST_DIR)/sbi-dbtr.o
23 $(TEST_DIR)/sbi-deps += $(TEST_DIR)/sbi-fwft.o
24 $(TEST_DIR)/sbi-deps += $(TEST_DIR)/sbi-sse.o
26 all_deps += $($(TEST_DIR)/sbi-deps)
46 cflatobjs += lib/riscv/sbi.o
52 cflatobjs += lib/riscv/sbi-sse-asm.o
97 asm-offsets = lib/riscv/asm-offsets.h riscv/sbi-asm-offsets.h
H A Dsbi-asm.S3 * Helper assembly code routines for RISC-V SBI extension tests.
10 #include <generated/sbi-asm-offsets.h>
12 #include "sbi-tests.h"
18 * a0 and a1 are set by SBI HSM start/suspend
98 * State is as specified by "SUSP System Resume Register State" of the SBI spec
H A Dsbi-tests.h40 #include <asm/sbi.h>
73 sbiret_report(ret, expected_error, expected_value, "check sbi.error and sbi.value")
82 sbiret_kfail(kfail, ret, expected_error, expected_value, "check sbi.error and sbi.value")
H A Disa-dbltrp.c3 * SBI verification
16 #include <asm/sbi.h>
18 #include <sbi-tests.h>
101 * Generate a double crash so that an SSE event should be generated. The SPEC (ISA nor SBI) in sse_double_trap()
H A Dsbi-asm-offsets.c3 #include <asm/sbi.h>
H A Dsbi-fwft.c3 * SBI verification
16 #include <asm/sbi.h>
18 #include "sbi-tests.h"
185 * Even though the SBI delegated the misaligned exception to S-mode, it might not trap on in fwft_check_misaligned_exc_deleg()
H A Dsbi.c3 * SBI verification
26 #include <asm/sbi.h>
31 #include "sbi-tests.h"
45 puts("Test SBI\n"); in help()
178 assert_msg(!(expected & BIT(31)), "SBI spec version bit 31 must be zero"); in check_base()
179 …assert_msg(__riscv_xlen == 32 || !(expected >> 32), "SBI spec version bits greater than 31 must be… in check_base()
187 report_skip("SBI spec version 0.2 or higher required"); in check_base()
1174 report_info("%d sbi calls made", num_calls); in dbcn_write_test()
1524 if (!report(ret.error == params.ret.error, "got expected sbi.error (%ld)", params.ret.error)) in check_susp()
1525 report_info("expected sbi.error %ld, received %ld", params.ret.error, ret.error); in check_susp()
[all …]
H A Dsbi-dbtr.c3 * SBI DBTR testsuite
14 #include "sbi-tests.h"
122 /* SBI shared mem messages layout */
H A Dsbi-sse.c3 * SBI SSE testsuite
20 #include <asm/sbi.h>
24 #include "sbi-tests.h"
251 * Preferred hart reset value is defined by SBI vendor in sse_test_attrs()
H A Dcstart.S154 * From the "HSM Hart Start Register State" table of the SBI spec:
/kvm-unit-tests/
H A D.gitlab-ci.yml193 sbi
206 sbi
221 sbi
234 sbi
249 sbi
264 sbi
H A Dconfigure134 sbi Use SBI DBCN (riscv only)
552 [ "$console" = "sbi" ] && echo "#define CONFIG_SBI_CONSOLE" >> lib/config.h
/kvm-unit-tests/lib/riscv/asm/
H A Dsbi.h34 /* SBI spec version fields */
142 /* SBI SSE Event Attributes. */
177 /* SBI SSE Event IDs. */
/kvm-unit-tests/lib/riscv/
H A Dsbi.c6 #include <asm/sbi.h>
133 puts("SBI shutdown failed!\n"); in sbi_shutdown()
H A Dtimer.c11 #include <asm/sbi.h>
H A Dsmp.c15 #include <asm/sbi.h>
H A Dasm-offsets.c6 #include <asm/sbi.h>
H A Dsbi-sse-asm.S10 #include <generated/sbi-asm-offsets.h>
H A Dio.c13 #include <asm/sbi.h>
H A Dsetup.c22 #include <asm/sbi.h>