diff options
author | Juan Quintela <quintela@redhat.com> | 2009-09-29 22:48:49 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-10-05 09:32:39 -0500 |
commit | 5ee0ffaa42b02e04d8047c7fc32687b348719294 (patch) | |
tree | cfe863b16d67c383de96ef2dd237444fe6b7fc74 /target-i386/cpu.h | |
parent | 1f76b9b9b3b78fb51c917d3f3efa6fff1e57a734 (diff) |
x86: make a20_mask int32_t
This makes the savevm code correct, and sign extensins gives us exactly
what we need (namely, sign extend to 64 bits when used with 64bit addresess.
Once there, change 0x100000 for 1 << 20, that maks all a20 use the same syntax.
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'target-i386/cpu.h')
-rw-r--r-- | target-i386/cpu.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target-i386/cpu.h b/target-i386/cpu.h index f318942eec..a4acf86bbb 100644 --- a/target-i386/cpu.h +++ b/target-i386/cpu.h @@ -589,7 +589,7 @@ typedef struct CPUX86State { SegmentCache idt; /* only base and limit are used */ target_ulong cr[5]; /* NOTE: cr1 is unused */ - uint64_t a20_mask; + int32_t a20_mask; /* FPU state */ unsigned int fpstt; /* top of stack index */ |