Skip to contentSkip to conversation

s390x: Add prefix for dxc afp emulator test

PATCH Thomas Huth 1 participant 1 message Feb 25, 2019 1 message not in the archive s390

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Thomas Huth

author Reviewed-by
#1 lore raw
Quoted 21 lines · Janosch Frank

Without it we have two reports that look the same, but don't have the same control register state for the test.

---
 s390x/emulator.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
s390x/emulator.c +1 -0
index f49c414..4c26b80 100644
@@ -266,6 +266,7 @@ static void test_dxc(void)
 	lc->dxc_vxc = 0x12345678;
 	set_fpc_dxc(0);
 
+	report_prefix_push("afp");
 	expect_pgm_int();
 	asm volatile("	.insn	rrf,0xb9600000,%0,%0,8,0\n"
 		     : : "r"(0) : "memory");

s390x/emulator.c static void test_dxc(void) · line 280

Quoted 8 lines
s390x/emulator.c +1 -1
@@ -273,7 +274,7 @@ static void test_dxc(void)
 
 	report("dxc in LC", lc->dxc_vxc == 0xff);
 	report("dxc in FPC", get_fpc_dxc() == 0xff);
-
+	report_prefix_pop();
 
 	/* DXC (0xff) is to be stored in LC only on a trap (CRT) without AFP */
 	lc->dxc_vxc = 0x12345678;

Maybe add a prefix a la "no-afp" for the second test, too?

Anyway: