diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2011-01-20 02:50:55 -0500 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2011-04-19 21:03:22 -0400 |
commit | 24cc67de62eebbda3ce0c46bdd56582c00dccd03 (patch) | |
tree | 7096191238ff09ab7a903674448cbf9e71c30f77 /arch/powerpc/include/asm/cputable.h | |
parent | f6e17f9b0bf172a5813dfef0c03d0a25ba83b0de (diff) |
powerpc: Define CPU feature for Architected 2.06 HV mode
This bit indicates that we are operating in hypervisor mode on a CPU
compliant to architecture 2.06 or later (currently server only).
We set it on POWER7 and have a boot-time CPU setup function that
clears it if MSR:HV isn't set (booting under a hypervisor).
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/include/asm/cputable.h')
-rw-r--r-- | arch/powerpc/include/asm/cputable.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/powerpc/include/asm/cputable.h b/arch/powerpc/include/asm/cputable.h index 1833d1a07e79..2fe37d781933 100644 --- a/arch/powerpc/include/asm/cputable.h +++ b/arch/powerpc/include/asm/cputable.h | |||
@@ -181,6 +181,7 @@ extern const char *powerpc_base_platform; | |||
181 | #define CPU_FTR_SLB LONG_ASM_CONST(0x0000000100000000) | 181 | #define CPU_FTR_SLB LONG_ASM_CONST(0x0000000100000000) |
182 | #define CPU_FTR_16M_PAGE LONG_ASM_CONST(0x0000000200000000) | 182 | #define CPU_FTR_16M_PAGE LONG_ASM_CONST(0x0000000200000000) |
183 | #define CPU_FTR_TLBIEL LONG_ASM_CONST(0x0000000400000000) | 183 | #define CPU_FTR_TLBIEL LONG_ASM_CONST(0x0000000400000000) |
184 | #define CPU_FTR_HVMODE_206 LONG_ASM_CONST(0x0000000800000000) | ||
184 | #define CPU_FTR_IABR LONG_ASM_CONST(0x0000002000000000) | 185 | #define CPU_FTR_IABR LONG_ASM_CONST(0x0000002000000000) |
185 | #define CPU_FTR_MMCRA LONG_ASM_CONST(0x0000004000000000) | 186 | #define CPU_FTR_MMCRA LONG_ASM_CONST(0x0000004000000000) |
186 | #define CPU_FTR_CTRL LONG_ASM_CONST(0x0000008000000000) | 187 | #define CPU_FTR_CTRL LONG_ASM_CONST(0x0000008000000000) |
@@ -418,7 +419,7 @@ extern const char *powerpc_base_platform; | |||
418 | CPU_FTR_DSCR | CPU_FTR_UNALIGNED_LD_STD | \ | 419 | CPU_FTR_DSCR | CPU_FTR_UNALIGNED_LD_STD | \ |
419 | CPU_FTR_STCX_CHECKS_ADDRESS | CPU_FTR_POPCNTB) | 420 | CPU_FTR_STCX_CHECKS_ADDRESS | CPU_FTR_POPCNTB) |
420 | #define CPU_FTRS_POWER7 (CPU_FTR_USE_TB | CPU_FTR_LWSYNC | \ | 421 | #define CPU_FTRS_POWER7 (CPU_FTR_USE_TB | CPU_FTR_LWSYNC | \ |
421 | CPU_FTR_PPCAS_ARCH_V2 | CPU_FTR_CTRL | \ | 422 | CPU_FTR_PPCAS_ARCH_V2 | CPU_FTR_CTRL | CPU_FTR_HVMODE_206 |\ |
422 | CPU_FTR_MMCRA | CPU_FTR_SMT | \ | 423 | CPU_FTR_MMCRA | CPU_FTR_SMT | \ |
423 | CPU_FTR_COHERENT_ICACHE | CPU_FTR_LOCKLESS_TLBIE | \ | 424 | CPU_FTR_COHERENT_ICACHE | CPU_FTR_LOCKLESS_TLBIE | \ |
424 | CPU_FTR_PURR | CPU_FTR_SPURR | CPU_FTR_REAL_LE | \ | 425 | CPU_FTR_PURR | CPU_FTR_SPURR | CPU_FTR_REAL_LE | \ |