s390x: Add prefixes for dxc afp emulator test
A message that is not in the archive (sent off-list or not yet received): [email protected]
Thomas Huth
Reviewed-byQuoted 37 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.
Signed-off-by Janosch Frank <[email protected]>--- s390x/emulator.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)s390x/emulator.c +3
-1@@ -266,6 +266,7 @@ static void test_dxc(void) lc->dxc_vxc =0x12345678 ;set_fpc_dxc (0 ); +report_prefix_push ("afp" );expect_pgm_int (); asmvolatile (" .insn rrf,0xb9600000,%0,%0,8,0\n" : :"r" (0 ) :"memory" );@@ -273,12 +274,13 @@ 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 ;set_fpc_dxc (0 ); +report_prefix_push ("no-afp" );expect_pgm_int ();/* temporarily disable AFP */ afp_disable ();
s390x/emulator.c static void test_dxc(void) · line 297
Quoted 7 lines
s390x/emulator.c +1
-0@@ -289,6 +291,7 @@ static void test_dxc(void)report ("dxc in LC" , lc->dxc_vxc ==0xff );report ("dxc not in FPC" ,get_fpc_dxc () ==0 ); +report_prefix_pop (); } static struct {
Reviewed-by Thomas Huth <[email protected]>