s390x: Shift variables in CPUState for memset(0)
The default reset handler does a memset(0) until right in between CPU_COMMON. I incorrectly changed that behavior on the s390x port, so let's move the fields in CPUState around to reflect the correct split up to which point memset(0) zeros out everything. Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
parent
d1ff903ca5
commit
4e8367812a
@ -87,9 +87,12 @@ typedef struct CPUS390XState {
|
|||||||
int pending_int;
|
int pending_int;
|
||||||
ExtQueue ext_queue[MAX_EXT_QUEUE];
|
ExtQueue ext_queue[MAX_EXT_QUEUE];
|
||||||
|
|
||||||
|
int ext_index;
|
||||||
|
|
||||||
|
CPU_COMMON
|
||||||
|
|
||||||
/* reset does memset(0) up to here */
|
/* reset does memset(0) up to here */
|
||||||
|
|
||||||
int ext_index;
|
|
||||||
int cpu_num;
|
int cpu_num;
|
||||||
uint8_t *storage_keys;
|
uint8_t *storage_keys;
|
||||||
|
|
||||||
@ -98,8 +101,6 @@ typedef struct CPUS390XState {
|
|||||||
QEMUTimer *tod_timer;
|
QEMUTimer *tod_timer;
|
||||||
|
|
||||||
QEMUTimer *cpu_timer;
|
QEMUTimer *cpu_timer;
|
||||||
|
|
||||||
CPU_COMMON
|
|
||||||
} CPUS390XState;
|
} CPUS390XState;
|
||||||
|
|
||||||
#if defined(CONFIG_USER_ONLY)
|
#if defined(CONFIG_USER_ONLY)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user