On 4 May 2012 16:28, Juan Quintela <quint...@redhat.com> wrote: > The only other sane approach that I can think is changing: > > #define VMSTATE_INT32_V(_f, _s, _v) \ > > into something like: > > VMSTATE_INT32_GENERAL(_f, _s, _v, _getter, _setter) > > and then _getter/_setter functions for normal ints the obvious copy this > uint32_t? > > Would that work for you?
Yes, I'd be happy with that approach: it's the general idea of "here's a function to get/set the value" that I like in the alpha code, not the specific implementation (which is a bit of an ugly hack). -- PMM