diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2018-11-14 17:29:30 +0400 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2018-11-27 15:35:15 +0100 |
commit | 03fee66fde3f9e179e3973e8c50f6fa0a0a14613 (patch) | |
tree | 0e9eb8138fe8f5a653b752e54f0cc035d48a2aab /target/openrisc/machine.c | |
parent | 5aaac46793828d01c893b9d99d905c657f59541e (diff) | |
download | qemu-03fee66fde3f9e179e3973e8c50f6fa0a0a14613.zip qemu-03fee66fde3f9e179e3973e8c50f6fa0a0a14613.tar.gz qemu-03fee66fde3f9e179e3973e8c50f6fa0a0a14613.tar.bz2 |
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>
Diffstat (limited to 'target/openrisc/machine.c')
-rw-r--r-- | target/openrisc/machine.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/target/openrisc/machine.c b/target/openrisc/machine.c index 1eedbf3..5d822f7 100644 --- a/target/openrisc/machine.c +++ b/target/openrisc/machine.c @@ -49,7 +49,8 @@ static const VMStateDescription vmstate_cpu_tlb = { } }; -static int get_sr(QEMUFile *f, void *opaque, size_t size, VMStateField *field) +static int get_sr(QEMUFile *f, void *opaque, size_t size, + const VMStateField *field) { CPUOpenRISCState *env = opaque; cpu_set_sr(env, qemu_get_be32(f)); @@ -57,7 +58,7 @@ static int get_sr(QEMUFile *f, void *opaque, size_t size, VMStateField *field) } static int put_sr(QEMUFile *f, void *opaque, size_t size, - VMStateField *field, QJSON *vmdesc) + const VMStateField *field, QJSON *vmdesc) { CPUOpenRISCState *env = opaque; qemu_put_be32(f, cpu_get_sr(env)); |