https://bugs.kde.org/show_bug.cgi?id=398545

            Bug ID: 398545
           Summary: Support for SHA instruction on Ryzen
           Product: valgrind
           Version: 3.14 SVN
          Platform: Other
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: vex
          Assignee: jsew...@acm.org
          Reporter: ehoff...@videotron.ca
  Target Milestone: ---

Setup:

Ryzen 2700X

Issue:

2 issues really.

The first one, the cpuid instruction does not return the sha instruction
extension bit set (CPUID leaf 7, subleaf 0, result EBX bit 29)

In fact, my CPU is returning, for cpuid leaf 7, subleaf 0 (while NOT in
Valgrind): EBX:0x209C01A9
And, while running in Valgrind: EBX:0x000027AB

So, the detection code does not detect the SHA instruction extension support.


Second, forcing the SHA instructions to be executed, Valgrind abort with:

vex amd64->IR: unhandled instruction bytes: 0xF 0x38 0xCB 0xCA 0xC5 0xF8 0x28
0xC1 0xC5 0xF8
vex amd64->IR:   REX=0 REX.W=0 REX.R=0 REX.X=0 REX.B=0
vex amd64->IR:   VEX=0 VEX.L=0 VEX.nVVVV=0x0 ESC=0F38
vex amd64->IR:   PFX.66=0 PFX.F2=0 PFX.F3=0
==32224== valgrind: Unrecognised instruction at address 0x11cdd3.

In this case, it's the SHA256RNDS2 instruction (0F 38 CB) that trigger the
abort

Regards,
Eric

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to