summaryrefslogtreecommitdiff
path: root/target-arm/cpu.h
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2005-04-07 19:42:46 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2005-04-07 19:42:46 +0000
commit8e96005d86cba6b2ce177f489463eda602d99238 (patch)
tree755ff27e540b4549d0cbb07849d5ddbf5cb4acf8 /target-arm/cpu.h
parent85d8be6bf2c6823f9d386794defa790618c08986 (diff)
downloadqemu-8e96005d86cba6b2ce177f489463eda602d99238.tar.gz
VFP register ordering (Paul Brook)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1355 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-arm/cpu.h')
-rw-r--r--target-arm/cpu.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/target-arm/cpu.h b/target-arm/cpu.h
index cf11c2f94d..1346175134 100644
--- a/target-arm/cpu.h
+++ b/target-arm/cpu.h
@@ -35,9 +35,9 @@
precision respectively.
Doing runtime conversions is tricky because VFP registers may contain
integer values (eg. as the result of a FTOSI instruction).
- A double precision register load/store must also load/store the
- corresponding single precision pair, although it is undefined how
- these overlap. */
+ s<2n> maps to the least significant half of d<n>
+ s<2n+1> maps to the most significant half of d<n>
+ */
typedef struct CPUARMState {
uint32_t regs[16];
@@ -71,10 +71,7 @@ typedef struct CPUARMState {
memory was written */
/* VFP coprocessor state. */
struct {
- union {
- float32 s[32];
- float64 d[16];
- } regs;
+ float64 regs[16];
/* We store these fpcsr fields separately for convenience. */
int vec_len;