* [Qemu-devel] [PATCH] s390x: wire up diag288 in tcg
@ 2017-08-18 9:37 Cornelia Huck
0 siblings, 0 replies; only message in thread
From: Cornelia Huck @ 2017-08-18 9:37 UTC (permalink / raw)
To: qemu-devel; +Cc: rth, agraf, thuth, borntraeger, Cornelia Huck
Make the diag288 watchdog useable via tcg as well.
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
---
target/s390x/misc_helper.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/target/s390x/misc_helper.c b/target/s390x/misc_helper.c
index d23ffcd890..80a13a1b66 100644
--- a/target/s390x/misc_helper.c
+++ b/target/s390x/misc_helper.c
@@ -103,6 +103,14 @@ void HELPER(diag)(CPUS390XState *env, uint32_t r1, uint32_t r3, uint32_t num)
handle_diag_308(env, r1, r3);
r = 0;
break;
+ case 0x288:
+ /* time bomb (watchdog) */
+ r = handle_diag_288(env, r1, r3);
+ if (r) {
+ program_interrupt(env, PGM_SPECIFICATION, ILEN_AUTO);
+ r = 0;
+ }
+ break;
default:
r = -1;
break;
--
2.13.5
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2017-08-18 9:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-18 9:37 [Qemu-devel] [PATCH] s390x: wire up diag288 in tcg Cornelia Huck
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).