[Qemu-devel] [PATCH v2 3/3] s390x: wire up diag288 in tcg

Cornelia Huck posted 3 patches 8 years, 5 months ago
[Qemu-devel] [PATCH v2 3/3] s390x: wire up diag288 in tcg
Posted by Cornelia Huck 8 years, 5 months ago
Make the diag288 watchdog useable via tcg as well.

Signed-off-by: Cornelia Huck <cohuck@redhat.com>
---
 target/s390x/misc_helper.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/target/s390x/misc_helper.c b/target/s390x/misc_helper.c
index 5a1eba02ab..34d730ba73 100644
--- a/target/s390x/misc_helper.c
+++ b/target/s390x/misc_helper.c
@@ -103,6 +103,10 @@ 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);
+        break;
     default:
         r = -1;
         break;
-- 
2.13.5


Re: [Qemu-devel] [PATCH v2 3/3] s390x: wire up diag288 in tcg
Posted by Thomas Huth 8 years, 5 months ago
On 18.08.2017 13:48, Cornelia Huck wrote:
> Make the diag288 watchdog useable via tcg as well.
> 
> Signed-off-by: Cornelia Huck <cohuck@redhat.com>
> ---
>  target/s390x/misc_helper.c | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/target/s390x/misc_helper.c b/target/s390x/misc_helper.c
> index 5a1eba02ab..34d730ba73 100644
> --- a/target/s390x/misc_helper.c
> +++ b/target/s390x/misc_helper.c
> @@ -103,6 +103,10 @@ 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);
> +        break;
>      default:
>          r = -1;
>          break;

Reviewed-by: Thomas Huth <thuth@redhat.com>