Lines Matching +full:reserved +full:- +full:memory
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Interception tests - for s390x CPU instruction that cause a VM exit
12 #include <asm/asm-offsets.h>
27 uint32_t old_prefix = -1U, tst_prefix = -1U; in test_stpx()
48 asm volatile(" stpx 0(%0) " : : "a"(-8L)); in test_stpx()
77 report_prefix_push("operand outside memory"); in test_spx()
79 asm volatile(" spx 0(%0) " : : "a"(-8L)); in test_spx()
83 report_prefix_push("new prefix outside memory"); in test_spx()
86 if (!host_is_tcg() && (get_ram_size() - new_prefix < 2 * PAGE_SIZE)) { in test_spx()
125 asm volatile ("stap 0(%0)\n" : : "a"(-8L)); in test_stap()
137 report(!id.reserved, "reserved bits not set"); in test_stidp()
150 asm volatile ("stidp 0(%0)\n" : : "a"(-8L)); in test_stidp()
168 : "memory", "0", "cc"); in test_testblock()
169 report(cc == 0 && pagebuf[0] == 0 && pagebuf[PAGE_SIZE - 1] == 0, in test_testblock()
179 asm volatile (" .insn rre,0xb22c0000,0,%0\n" : : "r"(-4096L)); in test_testblock()
220 if (!strcmp("-i", argv[i])) { in parse_intercept_test_args()
223 report_abort("-i needs a parameter"); in parse_intercept_test_args()
225 } else if (!strcmp("-t", argv[i])) { in parse_intercept_test_args()
228 report_abort("-t needs a parameter"); in parse_intercept_test_args()
269 nr_iterations -= 1; in main()
274 if (get_clock_ms() - startclk > time_to_run) in main()