Skip to content

Commit 50867db

Browse files
ardbiesheuvelRussell King (Oracle)
authored andcommitted
ARM: 9438/1: assembler: Drop obsolete VFP accessor fallback
Now that the minimum supported binutils version is 2.25, we no longer need a workaround for binutils older than 2.24 for accessing VFP control registers from assembler. Reviewed-by: Linus Walleij <[email protected]> Reviewed-by: Nathan Chancellor <[email protected]> Signed-off-by: Ard Biesheuvel <[email protected]> Signed-off-by: Russell King (Oracle) <[email protected]>
1 parent 386f2d9 commit 50867db

File tree

5 files changed

+0
-51
lines changed

5 files changed

+0
-51
lines changed

arch/arm/Kconfig

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1751,5 +1751,3 @@ config ARCH_HIBERNATION_POSSIBLE
17511751
default y if ARCH_SUSPEND_POSSIBLE
17521752

17531753
endmenu
1754-
1755-
source "arch/arm/Kconfig.assembler"

arch/arm/Kconfig.assembler

Lines changed: 0 additions & 6 deletions
This file was deleted.

arch/arm/include/asm/vfp.h

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,6 @@
99
#ifndef __ASM_VFP_H
1010
#define __ASM_VFP_H
1111

12-
#ifndef CONFIG_AS_VFP_VMRS_FPINST
13-
#define FPSID cr0
14-
#define FPSCR cr1
15-
#define MVFR1 cr6
16-
#define MVFR0 cr7
17-
#define FPEXC cr8
18-
#define FPINST cr9
19-
#define FPINST2 cr10
20-
#endif
21-
2212
/* FPSID bits */
2313
#define FPSID_IMPLEMENTER_BIT (24)
2414
#define FPSID_IMPLEMENTER_MASK (0xff << FPSID_IMPLEMENTER_BIT)

arch/arm/include/asm/vfpmacros.h

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,13 @@
88

99
#include <asm/vfp.h>
1010

11-
#ifdef CONFIG_AS_VFP_VMRS_FPINST
1211
.macro VFPFMRX, rd, sysreg, cond
1312
vmrs\cond \rd, \sysreg
1413
.endm
1514

1615
.macro VFPFMXR, sysreg, rd, cond
1716
vmsr\cond \sysreg, \rd
1817
.endm
19-
#else
20-
@ Macros to allow building with old toolkits (with no VFP support)
21-
.macro VFPFMRX, rd, sysreg, cond
22-
MRC\cond p10, 7, \rd, \sysreg, cr0, 0 @ FMRX \rd, \sysreg
23-
.endm
24-
25-
.macro VFPFMXR, sysreg, rd, cond
26-
MCR\cond p10, 7, \rd, \sysreg, cr0, 0 @ FMXR \sysreg, \rd
27-
.endm
28-
#endif
2918

3019
@ read all the working registers back into the VFP
3120
.macro VFPFLDMIA, base, tmp

arch/arm/vfp/vfpinstr.h

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,6 @@
6262
#define FPSCR_C (1 << 29)
6363
#define FPSCR_V (1 << 28)
6464

65-
#ifdef CONFIG_AS_VFP_VMRS_FPINST
66-
6765
#define fmrx(_vfp_) ({ \
6866
u32 __v; \
6967
asm volatile (".fpu vfpv2\n" \
@@ -78,26 +76,6 @@
7876
: : "r" (_var_) : "cc"); \
7977
})
8078

81-
#else
82-
83-
#define vfpreg(_vfp_) #_vfp_
84-
85-
#define fmrx(_vfp_) ({ \
86-
u32 __v; \
87-
asm volatile ("mrc p10, 7, %0, " vfpreg(_vfp_) "," \
88-
"cr0, 0 @ fmrx %0, " #_vfp_ \
89-
: "=r" (__v) : : "cc"); \
90-
__v; \
91-
})
92-
93-
#define fmxr(_vfp_, _var_) ({ \
94-
asm volatile ("mcr p10, 7, %0, " vfpreg(_vfp_) "," \
95-
"cr0, 0 @ fmxr " #_vfp_ ", %0" \
96-
: : "r" (_var_) : "cc"); \
97-
})
98-
99-
#endif
100-
10179
u32 vfp_single_cpdo(u32 inst, u32 fpscr);
10280
u32 vfp_single_cprt(u32 inst, u32 fpscr, struct pt_regs *regs);
10381

0 commit comments

Comments
 (0)