Lines Matching +full:write +full:- +full:to +full:- +full:write

1 // SPDX-License-Identifier: GPL-2.0-only
18 #include "sbi-tests.h"
49 if (!sbiret_report_error(&ret, SBI_SUCCESS, "set to %ld%s", value, str)) in fwft_set_and_check_raw()
74 sbiret_report(&ret, SBI_SUCCESS, reset, "resets to %lu", reset); in fwft_check_reset()
92 "Set to %lu without lock flag", test_values[i]); in fwft_feature_lock_test_values()
96 "Set to %lu with lock flag", test_values[i]); in fwft_feature_lock_test_values()
129 regs->epc += 4; in misaligned_handler()
184 /* Set to 0 and check after with get */ in fwft_check_misaligned_exc_deleg()
187 /* Set to 1 and check after with get */ in fwft_check_misaligned_exc_deleg()
198 ".option arch,-c\n" in fwft_check_misaligned_exc_deleg()
206 * Even though the SBI delegated the misaligned exception to S-mode, it might not trap on in fwft_check_misaligned_exc_deleg()
210 report_skip("Misaligned load exception does not trap in S-mode"); in fwft_check_misaligned_exc_deleg()
212 report_pass("Misaligned load exception trap in S-mode"); in fwft_check_misaligned_exc_deleg()
237 adue_set_ad(regs->badaddr, _PAGE_ACCESSED); in adue_read_handler()
243 adue_set_ad(regs->badaddr, _PAGE_ACCESSED | _PAGE_DIRTY); in adue_write_handler()
246 static bool adue_check_pte(pteval_t pte, bool write) in adue_check_pte() argument
248 return (pte & (_PAGE_ACCESSED | _PAGE_DIRTY)) == (_PAGE_ACCESSED | (write ? _PAGE_DIRTY : 0)); in adue_check_pte()
251 static void adue_check(bool hw_updating_enabled, bool write) in adue_check() argument
264 if (write) { in adue_check()
265 op = "write"; in adue_check()
275 adue_check_pte(pte_val(*ptep), write), "hw updating %s %s", in adue_check()
326 report_kfail(kfail, !enabled, "resets to 0"); in fwft_check_pte_ad_hw_updating()
354 sbiret_report_error(&ret, SBI_ERR_INVALID_PARAM, "set to 2"); in fwft_check_pte_ad_hw_updating()
357 sbiret_report_error(&ret, SBI_ERR_INVALID_PARAM, "set to %d with flags=2", !enabled); in fwft_check_pte_ad_hw_updating()