From defc3d56607284a0ad6437a4e41243a30a62172d Mon Sep 17 00:00:00 2001 From: Shahab Vahedi Date: Thu, 28 Nov 2024 10:58:09 +0100 Subject: [PATCH] amdgcn_architecture_t::set_exceptions: Fix conversion of xnack_error The conversion part in "amdgcn_architecture_t::set_exceptions ()" method is missing XNACK_ERROR conversion. This change remedies that. Change-Id: Ib6c70bb7761ec452cc7e28fca4de4888e365edb2 --- src/architecture.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/architecture.cpp b/src/architecture.cpp index 6ca7a68..0d490d3 100644 --- a/src/architecture.cpp +++ b/src/architecture.cpp @@ -1300,6 +1300,8 @@ amdgcn_architecture_t::set_exceptions (wave_t &wave, exception_mask_t mask, trapsts_mask |= sq_wave_trapsts_excp_inexact_mask; if ((m & exception_mask_t::int_div0) != 0) trapsts_mask |= sq_wave_trapsts_excp_int_div0_mask; + if ((m & exception_mask_t::xnack_error) != 0) + trapsts_mask |= sq_wave_trapsts_xnack_error_mask; if ((m & exception_mask_t::mem_viol) != 0) trapsts_mask |= sq_wave_trapsts_excp_mem_viol_mask; if ((m & exception_mask_t::illegal_inst) != 0)