Skip to content
This repository was archived by the owner on Aug 25, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 6 additions & 10 deletions test_pool/pe/operating_system/test_c028.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/** @file
* Copyright (c) 2023-2024, Arm Limited or its affiliates. All rights reserved.
* Copyright (c) 2023-2025, Arm Limited or its affiliates. All rights reserved.
* SPDX-License-Identifier : Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
Expand Down Expand Up @@ -29,18 +29,14 @@ static void payload(void)
uint64_t data = 0;
uint32_t index = val_pe_get_index_mpid(val_pe_get_mpid());

if (g_sbsa_level < 7) {
val_set_status(index, RESULT_SKIP(TEST_NUM, 01));
return;
}

/* ID_AA64MMFR0_EL1.FGT[59:56] = 0b0001 indicate fine grained trap feature */
/* ID_AA64MMFR0_EL1.FGT[59:56] == 0b0001 (FEAT_FGT) & 0b0010 (FEAT_FGT2)
* indicate fine grained trap feature */
data = VAL_EXTRACT_BITS(val_pe_reg_read(ID_AA64MMFR0_EL1), 56, 59);

if (data == 1)
val_set_status(index, RESULT_PASS(TEST_NUM, 01));
else
if ((data != 1) && (data != 2))
val_set_status(index, RESULT_FAIL(TEST_NUM, 01));
else
val_set_status(index, RESULT_PASS(TEST_NUM, 01));
}

uint32_t c028_entry(uint32_t num_pe)
Expand Down