mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
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>
This commit is contained in:
parent
1f76b9b9b3
commit
5ee0ffaa42
3 changed files with 6 additions and 11 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue