]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Bug 392146 - fix bad refactor in previous commit
authorPaul Floyd <pjfloyd@wanadoo.fr>
Sat, 11 May 2024 12:33:32 +0000 (14:33 +0200)
committerPaul Floyd <pjfloyd@wanadoo.fr>
Sat, 11 May 2024 12:33:32 +0000 (14:33 +0200)
VEX/priv/guest_arm64_helpers.c

index c79631f6130c027bffadfb9ecc2ed0171cbe1f2c..96963dbb29d7b7e0acf25f8c73f26ba1d3f91c92 100644 (file)
@@ -911,7 +911,7 @@ ULong arm64g_dirtyhelper_MRS_ID_AA64ISAR0_EL1 ( void )
    w &= 0xF000F0FFFFFF;
    /* Degredate SHA2 from b0010 to b0001*/
    if ( (w >> 12) & 0x2 ) {
-      w ^= ~(0x2 << 12);
+      w ^= (0x2 << 12);
       w |= (0x1 << 12);
    }