From 29762b80e5f386e7457308bb51c6b79bc7fb2afc Mon Sep 17 00:00:00 2001 From: Joel Smith Date: Tue, 3 Dec 2024 08:02:01 -0800 Subject: [PATCH] Fix a test --- tests/wormhole/test_silicon_driver_wh.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/wormhole/test_silicon_driver_wh.cpp b/tests/wormhole/test_silicon_driver_wh.cpp index 130eae8c..3fbaeb40 100644 --- a/tests/wormhole/test_silicon_driver_wh.cpp +++ b/tests/wormhole/test_silicon_driver_wh.cpp @@ -981,6 +981,11 @@ TEST(SiliconDriverWH, LargeAddressTlb) { // Read the scratch register via a different TLB, different code path: cluster.read_from_device(&value2, ARC_CORE, addr, sizeof(uint32_t), "REG_TLB"); + // Mask off lower 16 bits; FW changes these dynamically: + value0 &= 0xffff0000; + value1 &= 0xffff0000; + value2 &= 0xffff0000; + // Check that the values are the same: EXPECT_EQ(value1, value0); EXPECT_EQ(value2, value0);