diff options
author | David Hildenbrand <david@redhat.com> | 2017-09-28 22:36:51 +0200 |
---|---|---|
committer | Cornelia Huck <cohuck@redhat.com> | 2017-10-20 13:32:10 +0200 |
commit | cf729baaec3fceff31ea8f41e34fbc7e2475916d (patch) | |
tree | 0fa086ab3086aea4e7b56178a5849fb8db438250 /target/s390x/internal.h | |
parent | eabcea18f835178c1f8f088f88bf00e379f09438 (diff) |
s390x/kvm: factor out storing of CPU status
Factor it out into s390_store_status(), to be used also by TCG later on.
Signed-off-by: David Hildenbrand <david@redhat.com>
Message-Id: <20170928203708.9376-14-david@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
Diffstat (limited to 'target/s390x/internal.h')
-rw-r--r-- | target/s390x/internal.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/target/s390x/internal.h b/target/s390x/internal.h index 0ac026d30f..a301237c17 100644 --- a/target/s390x/internal.h +++ b/target/s390x/internal.h @@ -353,6 +353,8 @@ void s390x_tod_timer(void *opaque); void s390x_cpu_timer(void *opaque); void do_restart_interrupt(CPUS390XState *env); void s390_handle_wait(S390CPU *cpu); +#define S390_STORE_STATUS_DEF_ADDR offsetof(LowCore, floating_pt_save_area) +int s390_store_status(S390CPU *cpu, hwaddr addr, bool store_arch); #ifndef CONFIG_USER_ONLY LowCore *cpu_map_lowcore(CPUS390XState *env); void cpu_unmap_lowcore(LowCore *lowcore); |