summaryrefslogtreecommitdiff
path: root/target-s390x/cpu.h
diff options
context:
space:
mode:
authorEric Farman <farman@linux.vnet.ibm.com>2015-05-07 14:35:44 -0400
committerCornelia Huck <cornelia.huck@de.ibm.com>2015-05-27 17:52:03 +0200
commitc498d8e36e2998fb67de21a34ece633d356a4834 (patch)
tree5b767101eb99af8c7adefdec65cbae2f737325f0 /target-s390x/cpu.h
parent0915aed5842bd4dbe396b92d4f3b846ae29ad663 (diff)
downloadqemu-c498d8e36e2998fb67de21a34ece633d356a4834.tar.gz
s390x: Common access to floating point registers
Provide a routine to access the correct floating point register, to simplify future expansion. Suggested-by: David Hildenbrand <dahi@linux.vnet.ibm.com> Signed-off-by: Eric Farman <farman@linux.vnet.ibm.com> Reviewed-by: David Hildenbrand <dahi@linux.vnet.ibm.com> Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Diffstat (limited to 'target-s390x/cpu.h')
-rw-r--r--target-s390x/cpu.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/target-s390x/cpu.h b/target-s390x/cpu.h
index c55721114e..e968769e8e 100644
--- a/target-s390x/cpu.h
+++ b/target-s390x/cpu.h
@@ -162,6 +162,11 @@ typedef struct CPUS390XState {
} CPUS390XState;
+static inline CPU_DoubleU *get_freg(CPUS390XState *cs, int nr)
+{
+ return &cs->fregs[nr];
+}
+
#include "cpu-qom.h"
#include <sysemu/kvm.h>