forked from Imagelibrary/binutils-gdb
Fix checks for VSX and Altivec availability on Power
gdb/ChangeLog * ppc-linux-nat.c (ppc_linux_read_description): Use PPC_FEATURE_HAS_VSX and PPC_FEATURE_HAS_ALTIVEC to check if such features are available.
This commit is contained in:
@@ -2419,7 +2419,8 @@ ppc_linux_read_description (struct target_ops *ops)
|
||||
perror_with_name (_("Unable to fetch SPE registers"));
|
||||
}
|
||||
|
||||
if (have_ptrace_getsetvsxregs)
|
||||
if (have_ptrace_getsetvsxregs
|
||||
&& (ppc_linux_get_hwcap () & PPC_FEATURE_HAS_VSX))
|
||||
{
|
||||
gdb_vsxregset_t vsxregset;
|
||||
|
||||
@@ -2432,7 +2433,8 @@ ppc_linux_read_description (struct target_ops *ops)
|
||||
perror_with_name (_("Unable to fetch VSX registers"));
|
||||
}
|
||||
|
||||
if (have_ptrace_getvrregs)
|
||||
if (have_ptrace_getvrregs
|
||||
&& (ppc_linux_get_hwcap () & PPC_FEATURE_HAS_ALTIVEC))
|
||||
{
|
||||
gdb_vrregset_t vrregset;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user