From 98fcbfcb05948bf2fe0a42ed57939994d5a31101 Mon Sep 17 00:00:00 2001 From: Ved Shanbhogue Date: Fri, 27 Oct 2023 12:31:31 -0500 Subject: [PATCH] do not qualify exec_req with pid_valid for untranslated requests --- iommu_ref_model/libiommu/src/iommu_translate.c | 2 +- iommu_ref_model/test/test_utils.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/iommu_ref_model/libiommu/src/iommu_translate.c b/iommu_ref_model/libiommu/src/iommu_translate.c index fdc0af6e..1d0d955a 100644 --- a/iommu_ref_model/libiommu/src/iommu_translate.c +++ b/iommu_ref_model/libiommu/src/iommu_translate.c @@ -46,7 +46,7 @@ iommu_translate_iova( req->device_id, 0 /* GSCV */, 0 /* GSCID */, TRANSLATION_REQUEST); TTYP = TTYPE_NONE; if ( req->tr.at == ADDR_TYPE_UNTRANSLATED && req->tr.read_writeAMO == READ ) { - if ( req->pid_valid && req->exec_req ) + if ( req->exec_req ) TTYP = UNTRANSLATED_READ_FOR_EXECUTE_TRANSACTION; else TTYP = UNTRANSLATED_READ_TRANSACTION; diff --git a/iommu_ref_model/test/test_utils.c b/iommu_ref_model/test/test_utils.c index 7ea849a0..c8c027e2 100644 --- a/iommu_ref_model/test/test_utils.c +++ b/iommu_ref_model/test/test_utils.c @@ -282,7 +282,7 @@ check_rsp_and_faults( EXP_TTYP = TTYPE_NONE; if ( req->tr.at == ADDR_TYPE_UNTRANSLATED && req->tr.read_writeAMO == READ ) { - if ( req->pid_valid && req->exec_req ) + if ( req->exec_req ) EXP_TTYP = UNTRANSLATED_READ_FOR_EXECUTE_TRANSACTION; else EXP_TTYP = UNTRANSLATED_READ_TRANSACTION;