History | View | Annotate | Download (1.1 kB)
vmstate: Make VMSTATE_STRUCT_POINTER take type, not ptr-to-type
The VMSTATE_STRUCT_POINTER macros are a bit odd in that theymust be passed an argument "FooType *" rather than just takingthe FooType. They're only used in one place, so it's easy totidy this up. This also lets us use the macro to replace the...
vmstate: Add support for an array of ptimer_state *
Add support for defining a vmstate field which is an arrayof pointers to structures, and use this to define aVMSTATE_PTIMER_ARRAY() which allows an array of ptimer_state*to be used by devices.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>...
hw: move headers to include/
Many of these should be cleaned up with proper qdev-/QOM-ification.Right now there are many catch-all headers in include/hw/ARCH dependingon cpu.h, and this makes it necessary to compile these files per-target.However, fixing this does not belong in these patches....