| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Ptrace test for VMX/VSX registers |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright (C) 2015 Anshuman Khandual, IBM Corporation. |
|---|
| 5 | | - * |
|---|
| 6 | | - * This program is free software; you can redistribute it and/or |
|---|
| 7 | | - * modify it under the terms of the GNU General Public License |
|---|
| 8 | | - * as published by the Free Software Foundation; either version |
|---|
| 9 | | - * 2 of the License, or (at your option) any later version. |
|---|
| 10 | 6 | */ |
|---|
| 11 | 7 | #include "ptrace.h" |
|---|
| 12 | 8 | #include "ptrace-vsx.h" |
|---|
| .. | .. |
|---|
| 65 | 61 | pid_t pid; |
|---|
| 66 | 62 | int ret, status, i; |
|---|
| 67 | 63 | |
|---|
| 64 | + SKIP_IF(!have_hwcap(PPC_FEATURE_HAS_VSX)); |
|---|
| 65 | + |
|---|
| 68 | 66 | shm_id = shmget(IPC_PRIVATE, sizeof(int) * 2, 0777|IPC_CREAT); |
|---|
| 69 | 67 | |
|---|
| 70 | 68 | for (i = 0; i < VEC_MAX; i++) |
|---|