Summary: | Powerpc: valgrind throws 'facility scv unavailable exception' | ||
---|---|---|---|
Product: | [Developer tools] valgrind | Reporter: | Carl Love <cel> |
Component: | vex | Assignee: | Julian Seward <jseward> |
Status: | CLOSED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | 3.18.1 | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | Powerpc fix checking for scv support add check for scv instruction |
Description
Carl Love
2022-02-18 18:54:06 UTC
Created attachment 146924 [details]
Powerpc fix checking for scv support add check for scv instruction
The attached patch fixes the issue of testing the scv instruction which results in an entry in dmesg. It also adds the missing check for scv support in VEX/priv/guest_ppc_toIR.c, function dis_syslink().
patch committed commit 7f11271403219d21c46e3b831cc1709336e792f1 (HEAD -> master, origin/master, origin/HEAD) Author: Carl Love <carll@us.ibm.com> Date: Fri Feb 11 14:07:20 2022 -0600 Powerpc: Fix checking for scv support, add check to scv instruction parsing. The check for the scv instruction in coregrind/m_machine.c issues an scv instruction and uses sigill to determine if the instruction is supported. Issuing scv on systems that don't support scv, i.e. scv support is not in HWCAPS2, generates a message in dmesg "Facility 'SCV' unavailable (12), exception". This patch removes the sigill based scv instruction test from coregrind/m_machine.c. The scv support is now determined by reading the HWCAPS2 in setup_client_stack(). VG_(machine_ppc64_set_scv_support) is called to set the flag ppc_scv_supported in struct VexArchInfo. The allow_scv flag is added in disInstr_PPC_WRK. The allow_scv flag is used to ensure the host has support for scv before generating the iops for the scv instruction. Patch committed commit 7f11271403219d21c46e3b831cc1709336e792f1 (HEAD -> master, origin/master, origin/HEAD) Author: Carl Love <carll@us.ibm.com> Date: Fri Feb 11 14:07:20 2022 -0600 Powerpc: Fix checking for scv support, add check to scv instruction parsing. The check for the scv instruction in coregrind/m_machine.c issues an scv instruction and uses sigill to determine if the instruction is supported. Issuing scv on systems that don't support scv, i.e. scv support is not in HWCAPS2, generates a message in dmesg "Facility 'SCV' unavailable (12), exception". This patch removes the sigill based scv instruction test from coregrind/m_machine.c. The scv support is now determined by reading the HWCAPS2 in setup_client_stack(). VG_(machine_ppc64_set_scv_support) is called to set the flag ppc_scv_supported in struct VexArchInfo. The allow_scv flag is added in disInstr_PPC_WRK. The allow_scv flag is used to ensure the host has support for scv before generating the iops for the scv instruction. |