| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Ptrace test for TAR, PPR, DSCR 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-tar.h" |
|---|
| .. | .. |
|---|
| 82 | 78 | pid_t pid; |
|---|
| 83 | 79 | int ret, status; |
|---|
| 84 | 80 | |
|---|
| 81 | + // TAR was added in v2.07 |
|---|
| 82 | + SKIP_IF(!have_hwcap2(PPC_FEATURE2_ARCH_2_07)); |
|---|
| 83 | + |
|---|
| 85 | 84 | shm_id = shmget(IPC_PRIVATE, sizeof(int) * 3, 0777|IPC_CREAT); |
|---|
| 86 | 85 | pid = fork(); |
|---|
| 87 | 86 | if (pid < 0) { |
|---|