projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
45efa07
)
sparc: Use DEFINE_PROP for nwindows property
author
Eduardo Habkost
<ehabkost@redhat.com>
Fri, 11 Dec 2020 22:05:14 +0000
(17:05 -0500)
committer
Eduardo Habkost
<ehabkost@redhat.com>
Fri, 18 Dec 2020 20:20:17 +0000
(15:20 -0500)
Use the DEFINE_PROP macro (which will set extra fields in the
struct) instead of initializing a Property struct manually.
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Acked-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Message-Id: <
20201211220529
.
2290218
-18-ehabkost@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
target/sparc/cpu.c
patch
|
blob
|
history
diff --git
a/target/sparc/cpu.c
b/target/sparc/cpu.c
index 6a3299041f6e32fb61e4c693e2a221c3d519b0e2..a1dc0f1be4fc4b85b49bc00ebdfdde24ec77666e 100644
(file)
--- a/
target/sparc/cpu.c
+++ b/
target/sparc/cpu.c
@@
-848,7
+848,8
@@
static Property sparc_cpu_properties[] = {
qdev_prop_uint64, target_ulong),
DEFINE_PROP_UINT32("fpu-version", SPARCCPU, env.def.fpu_version, 0),
DEFINE_PROP_UINT32("mmu-version", SPARCCPU, env.def.mmu_version, 0),
- { .name = "nwindows", .info = &qdev_prop_nwindows },
+ DEFINE_PROP("nwindows", SPARCCPU, env.def.nwindows,
+ qdev_prop_nwindows, uint32_t),
DEFINE_PROP_END_OF_LIST()
};