From: Thomas Huth <thuth@redhat.com>
To: kvm-ppc@vger.kernel.org
Subject: [kvm-unit-tests PULL 5/5] s390x: Add prefixes for dxc afp emulator test
Date: Thu, 28 Feb 2019 16:52:00 +0000 [thread overview]
Message-ID: <1551372720-17321-6-git-send-email-thuth@redhat.com> (raw)
From: Janosch Frank <frankja@linux.ibm.com>
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 <frankja@linux.ibm.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
---
s390x/emulator.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/s390x/emulator.c b/s390x/emulator.c
index f49c414..bce7b79 100644
--- a/s390x/emulator.c
+++ b/s390x/emulator.c
@@ -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");
@@ -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();
@@ -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 {
--
1.8.3.1
reply other threads:[~2019-02-28 16:52 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1551372720-17321-6-git-send-email-thuth@redhat.com \
--to=thuth@redhat.com \
--cc=kvm-ppc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.