mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-18 05:28:36 -07:00
vmstate: constify VMStateField
Because they are supposed to remain const. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20181114132931.22624-1-marcandre.lureau@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
5aaac46793
commit
03fee66fde
22 changed files with 162 additions and 135 deletions
|
|
@ -56,7 +56,8 @@ static const VMStateDescription vmstate_tlb_entry = {
|
|||
};
|
||||
#endif
|
||||
|
||||
static int get_psr(QEMUFile *f, void *opaque, size_t size, VMStateField *field)
|
||||
static int get_psr(QEMUFile *f, void *opaque, size_t size,
|
||||
const VMStateField *field)
|
||||
{
|
||||
SPARCCPU *cpu = opaque;
|
||||
CPUSPARCState *env = &cpu->env;
|
||||
|
|
@ -69,8 +70,8 @@ static int get_psr(QEMUFile *f, void *opaque, size_t size, VMStateField *field)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int put_psr(QEMUFile *f, void *opaque, size_t size, VMStateField *field,
|
||||
QJSON *vmdesc)
|
||||
static int put_psr(QEMUFile *f, void *opaque, size_t size,
|
||||
const VMStateField *field, QJSON *vmdesc)
|
||||
{
|
||||
SPARCCPU *cpu = opaque;
|
||||
CPUSPARCState *env = &cpu->env;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue