Lines Matching +full:machine +full:- +full:mode

1 // SPDX-License-Identifier: GPL-2.0-only
67 thread_endianness = MSR_LE & ucp->uc_mcontext.gp_regs[PT_MSR]; in trap_signal_handler()
70 * Little-Endian Machine in trap_signal_handler()
94 * not in transacional mode). On te other hand, if after in trap_signal_handler()
95 * the return from the signal handler the endianness in- in trap_signal_handler()
98 * and (4) are executed (tbegin.; trap;) and we get sim- in trap_signal_handler()
99 * ilaly on the trap signal handler, but now in TM mode. in trap_signal_handler()
104 * Finally, getting a trap in TM mode or not is just in trap_signal_handler()
109 * a trap caught in non-transactional mode is the very in trap_signal_handler()
116 ucp->uc_mcontext.gp_regs[PT_NIP] += 16; in trap_signal_handler()
123 ucp->uc_mcontext.gp_regs[PT_MSR] |= 1UL; in trap_signal_handler()
124 ucp->uc_mcontext.gp_regs[PT_NIP] += 4; in trap_signal_handler()
130 * Big-Endian Machine in trap_signal_handler()
139 * trap in TM mode. in trap_signal_handler()
141 ucp->uc_mcontext.gp_regs[PT_MSR] |= 1UL; in trap_signal_handler()
147 * second trap event endianness will flip back "automat- in trap_signal_handler()
155 * Once here it means that after returning from the sec- in trap_signal_handler()
171 ucp->uc_mcontext.gp_regs[PT_MSR] &= ~1UL; in trap_signal_handler()
172 ucp->uc_mcontext.gp_regs[PT_NIP] += 8; in trap_signal_handler()
201 * instruction is executed on machine's native endianness (in in ping()
203 * [OP] means "Opposite Endianness", i.e. on a BE machine, it in ping()
204 * tells how a instruction is executed as a LE instruction; con- in ping()
205 * versely, on a LE machine, it tells how a instruction is in ping()
283 * Bind thread ping() and pong() both to CPU 0 so they ping-pong and in tm_trap_test()
291 /* Figure out the machine endianness */ in tm_trap_test()
294 printf("%s machine detected. Checking if endianness flips %s", in tm_trap_test()
295 le ? "Little-Endian" : "Big-Endian", in tm_trap_test()