Skip to content

Commit 4ec577a

Browse files
Mark Nelsonpaulusmack
authored andcommitted
powerpc: Add new CPU feature: CPU_FTR_UNALIGNED_LD_STD
Add a new CPU feature bit, CPU_FTR_UNALIGNED_LD_STD, to be added to the 64bit powerpc chips that can do unaligned load double and store double without any performance hit. This is added to Power6 and Cell and will be used in the next commit to disable the code that gets the destination address aligned on those CPUs where doing that doesn't improve performance. Signed-off-by: Mark Nelson <[email protected]> Signed-off-by: Paul Mackerras <[email protected]>
1 parent 4090019 commit 4ec577a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

arch/powerpc/include/asm/cputable.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ extern const char *powerpc_base_platform;
194194
#define CPU_FTR_VSX LONG_ASM_CONST(0x0010000000000000)
195195
#define CPU_FTR_SAO LONG_ASM_CONST(0x0020000000000000)
196196
#define CPU_FTR_CP_USE_DCBTZ LONG_ASM_CONST(0x0040000000000000)
197+
#define CPU_FTR_UNALIGNED_LD_STD LONG_ASM_CONST(0x0080000000000000)
197198

198199
#ifndef __ASSEMBLY__
199200

@@ -404,7 +405,7 @@ extern const char *powerpc_base_platform;
404405
CPU_FTR_MMCRA | CPU_FTR_SMT | \
405406
CPU_FTR_COHERENT_ICACHE | CPU_FTR_LOCKLESS_TLBIE | \
406407
CPU_FTR_PURR | CPU_FTR_SPURR | CPU_FTR_REAL_LE | \
407-
CPU_FTR_DSCR)
408+
CPU_FTR_DSCR | CPU_FTR_UNALIGNED_LD_STD)
408409
#define CPU_FTRS_POWER7 (CPU_FTR_USE_TB | CPU_FTR_LWSYNC | \
409410
CPU_FTR_HPTE_TABLE | CPU_FTR_PPCAS_ARCH_V2 | CPU_FTR_CTRL | \
410411
CPU_FTR_MMCRA | CPU_FTR_SMT | \
@@ -415,7 +416,8 @@ extern const char *powerpc_base_platform;
415416
CPU_FTR_HPTE_TABLE | CPU_FTR_PPCAS_ARCH_V2 | CPU_FTR_CTRL | \
416417
CPU_FTR_ALTIVEC_COMP | CPU_FTR_MMCRA | CPU_FTR_SMT | \
417418
CPU_FTR_PAUSE_ZERO | CPU_FTR_CI_LARGE_PAGE | \
418-
CPU_FTR_CELL_TB_BUG | CPU_FTR_CP_USE_DCBTZ)
419+
CPU_FTR_CELL_TB_BUG | CPU_FTR_CP_USE_DCBTZ | \
420+
CPU_FTR_UNALIGNED_LD_STD)
419421
#define CPU_FTRS_PA6T (CPU_FTR_USE_TB | CPU_FTR_LWSYNC | \
420422
CPU_FTR_HPTE_TABLE | CPU_FTR_PPCAS_ARCH_V2 | \
421423
CPU_FTR_ALTIVEC_COMP | CPU_FTR_CI_LARGE_PAGE | \

0 commit comments

Comments
 (0)