diff options
author | dp-arm <dimitris.papastamos@arm.com> | 2017-02-01 11:43:02 +0000 |
---|---|---|
committer | dp-arm <dimitris.papastamos@arm.com> | 2017-02-01 11:47:04 +0000 |
commit | 6e975fe64714457dd70ec4faf482010a5d69e0d2 (patch) | |
tree | 3dca0afd3a08a24650a3b3d0b6f609390f200812 /tests/runtime_services | |
parent | 757d726e180691cd8eb47286b29074082d21b178 (diff) |
PMF: Fixup PMF constants
`PMF_ARM_TIF_IMPL_ID` should be set to 0x41. The code left shifts it
by 24 bit positions.
Change-Id: I50f1148dc92fa3d469d4a10b22500993ccb94dad
Signed-off-by: dp-arm <dimitris.papastamos@arm.com>
Diffstat (limited to 'tests/runtime_services')
-rw-r--r-- | tests/runtime_services/standard_service/pmf/api_tests/runtime_instr/test_pmf_rt_instr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/runtime_services/standard_service/pmf/api_tests/runtime_instr/test_pmf_rt_instr.c b/tests/runtime_services/standard_service/pmf/api_tests/runtime_instr/test_pmf_rt_instr.c index 815a5e0..25e467f 100644 --- a/tests/runtime_services/standard_service/pmf/api_tests/runtime_instr/test_pmf_rt_instr.c +++ b/tests/runtime_services/standard_service/pmf/api_tests/runtime_instr/test_pmf_rt_instr.c @@ -147,7 +147,7 @@ static test_result_t get_ts(void) ts = get_core_timestamps(); for (i = 0; i < TOTAL_IDS; i++) { - tid = PMF_ARM_TIF_IMPL_ID; + tid = PMF_ARM_TIF_IMPL_ID << PMF_IMPL_ID_SHIFT; tid |= PMF_RT_INSTR_SVC_ID << PMF_SVC_ID_SHIFT | i; if (pmf_get_ts(tid, &ts[i]) != 0) { ERROR("Failed to capture PMF timestamp\n"); @@ -330,7 +330,7 @@ static int is_rt_instr_supported(void) { u_register_t tid, dummy; - tid = PMF_ARM_TIF_IMPL_ID; + tid = PMF_ARM_TIF_IMPL_ID << PMF_IMPL_ID_SHIFT; tid |= PMF_RT_INSTR_SVC_ID << PMF_SVC_ID_SHIFT; return !pmf_get_ts(tid, &dummy); } |