Skip to contentSkip to conversation

s390x: wire up diag288 in tcg

PATCH New Cornelia Huck 1 participant 1 message Aug 18, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 s390x: wire up diag288 in tcg

Make the diag288 watchdog useable via tcg as well.

---
 target/s390x/misc_helper.c | 8 ++++++++
 1 file changed, 8 insertions(+)
target/s390x/misc_helper.c +8 -0
index d23ffcd890..80a13a1b66 100644
@@ -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;
Signature · 1 line
2.13.5