__mtmsr, __builtin_ppc_mtmsr
Purpose
Move to Machine State Register
Moves the contents of bits 32 to 62 of the designated GPR into the MSR.
Syntax
void __builtin_ppc_mtmsr (unsigned long value)
void __mtmsr (unsigned long value)
Note:
- The built-in function in the form of
__nameis a synonym of the built-in function in the form of__builtin_ppc_name. - The built-in function in the form of
__nameis provided for compatibility with IBM® XL C/C++ for AIX® 16.1.0 or earlier releases. This built-in function form might be deprecated in the future.
Parameters
- value
- The bitwise OR result of bits 48 and 49 of value is placed into MSR48. The bitwise OR result of bits 58 and 49 of value is placed into MSR58. The bitwise OR result of bits 59 and 49 of value is placed into MSR59. Bits 32:47, 49:50, 52:57, and 60:62 of value are placed into the corresponding bits of the MSR.
Usage
Execution of this instruction is privileged and restricted to supervisor mode only.