.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright 2015, Cyril Bur, IBM Corp. |
---|
3 | | - * |
---|
4 | | - * This program is free software; you can redistribute it and/or |
---|
5 | | - * modify it under the terms of the GNU General Public License |
---|
6 | | - * as published by the Free Software Foundation; either version |
---|
7 | | - * 2 of the License, or (at your option) any later version. |
---|
8 | 4 | * |
---|
9 | 5 | * This test attempts to see if the VMX registers change across a syscall (fork). |
---|
10 | 6 | */ |
---|
.. | .. |
---|
53 | 49 | * Setup an environment with much context switching |
---|
54 | 50 | */ |
---|
55 | 51 | pid_t pid2; |
---|
56 | | - pid_t pid = fork(); |
---|
| 52 | + pid_t pid; |
---|
57 | 53 | int ret; |
---|
58 | 54 | int child_ret; |
---|
| 55 | + |
---|
| 56 | + // vcmpequd used in vmx_asm.S is v2.07 |
---|
| 57 | + SKIP_IF(!have_hwcap2(PPC_FEATURE2_ARCH_2_07)); |
---|
| 58 | + |
---|
| 59 | + pid = fork(); |
---|
59 | 60 | FAIL_IF(pid == -1); |
---|
60 | 61 | |
---|
61 | 62 | pid2 = fork(); |
---|