vmstate: remove const from pre_save() functions
Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
e59fb3741b
commit
d4bfa4d7c6
4
exec.c
4
exec.c
@ -513,9 +513,9 @@ void cpu_exec_init_all(unsigned long tb_size)
|
|||||||
|
|
||||||
#if defined(CPU_SAVE_VERSION) && !defined(CONFIG_USER_ONLY)
|
#if defined(CPU_SAVE_VERSION) && !defined(CONFIG_USER_ONLY)
|
||||||
|
|
||||||
static void cpu_common_pre_save(const void *opaque)
|
static void cpu_common_pre_save(void *opaque)
|
||||||
{
|
{
|
||||||
CPUState *env = (void *)opaque;
|
CPUState *env = opaque;
|
||||||
|
|
||||||
cpu_synchronize_state(env);
|
cpu_synchronize_state(env);
|
||||||
}
|
}
|
||||||
|
4
hw/fdc.c
4
hw/fdc.c
@ -643,9 +643,9 @@ static const VMStateDescription vmstate_fdrive = {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
static void fdc_pre_save(const void *opaque)
|
static void fdc_pre_save(void *opaque)
|
||||||
{
|
{
|
||||||
fdctrl_t *s = (void *)opaque;
|
fdctrl_t *s = opaque;
|
||||||
|
|
||||||
s->dor_vmstate = s->dor | GET_CUR_DRV(s);
|
s->dor_vmstate = s->dor | GET_CUR_DRV(s);
|
||||||
}
|
}
|
||||||
|
@ -157,9 +157,9 @@ static void update_irq(struct HPETTimer *timer)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void hpet_pre_save(const void *opaque)
|
static void hpet_pre_save(void *opaque)
|
||||||
{
|
{
|
||||||
HPETState *s = (void *)opaque;
|
HPETState *s = opaque;
|
||||||
/* save current counter value */
|
/* save current counter value */
|
||||||
s->hpet_counter = hpet_get_ticks();
|
s->hpet_counter = hpet_get_ticks();
|
||||||
}
|
}
|
||||||
|
4
hw/hw.h
4
hw/hw.h
@ -308,8 +308,8 @@ struct VMStateDescription {
|
|||||||
LoadStateHandler *load_state_old;
|
LoadStateHandler *load_state_old;
|
||||||
int (*pre_load)(void *opaque);
|
int (*pre_load)(void *opaque);
|
||||||
int (*post_load)(void *opaque, int version_id);
|
int (*post_load)(void *opaque, int version_id);
|
||||||
void (*pre_save)(const void *opaque);
|
void (*pre_save)(void *opaque);
|
||||||
void (*post_save)(const void *opaque);
|
void (*post_save)(void *opaque);
|
||||||
VMStateField *fields;
|
VMStateField *fields;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -635,9 +635,9 @@ static void serial_event(void *opaque, int event)
|
|||||||
serial_receive_break(s);
|
serial_receive_break(s);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void serial_pre_save(const void *opaque)
|
static void serial_pre_save(void *opaque)
|
||||||
{
|
{
|
||||||
SerialState *s = (void *)opaque;
|
SerialState *s = opaque;
|
||||||
s->fcr_vmstate = s->fcr;
|
s->fcr_vmstate = s->fcr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user