unicorn/qemu/target-i386
Eric Blake 9ec25b4673
qom: Swap 'name' next to visitor in ObjectPropertyAccessor
Similar to the previous patch, it's nice to have all functions
in the tree that involve a visitor and a name for conversion to
or from QAPI to consistently stick the 'name' parameter next
to the Visitor parameter.

Done by manually changing include/qom/object.h and qom/object.c,
then running this Coccinelle script and touching up the fallout
(Coccinelle insisted on adding some trailing whitespace).

@ rule1 @
identifier fn;
typedef Object, Visitor, Error;
identifier obj, v, opaque, name, errp;
@@
void fn
- (Object *obj, Visitor *v, void *opaque, const char *name,
+ (Object *obj, Visitor *v, const char *name, void *opaque,
Error **errp) { ... }

@@
identifier rule1.fn;
expression obj, v, opaque, name, errp;
@@
fn(obj, v,
- opaque, name,
+ name, opaque,
errp)

Backports commit d7bce9999df85c56c8cb1fcffd944d51bff8ff48 from qemu
2018-02-19 23:14:37 -05:00
..
arch_memory_mapping.c x86: Clean up includes 2018-02-19 01:00:09 -05:00
bpt_helper.c x86: Clean up includes 2018-02-19 01:00:09 -05:00
cc_helper.c x86: Clean up includes 2018-02-19 01:00:09 -05:00
cc_helper_template.h
cpu-qom.h
cpu.c qom: Swap 'name' next to visitor in ObjectPropertyAccessor 2018-02-19 23:14:37 -05:00
cpu.h target-i386: Add PKU and and OSPKE support 2018-02-19 00:07:31 -05:00
excp_helper.c x86: Clean up includes 2018-02-19 01:00:09 -05:00
fpu_helper.c x86: Clean up includes 2018-02-19 01:00:09 -05:00
helper.c x86: Clean up includes 2018-02-19 01:00:09 -05:00
helper.h
int_helper.c x86: Clean up includes 2018-02-19 01:00:09 -05:00
Makefile.objs
mem_helper.c x86: Clean up includes 2018-02-19 01:00:09 -05:00
misc_helper.c x86: Clean up includes 2018-02-19 01:00:09 -05:00
ops_sse.h target-i386: Rename XMM_[BWLSDQ] helpers to ZMM_* 2018-02-18 23:53:16 -05:00
ops_sse_header.h target-i386: Rename struct XMMReg to ZMMReg 2018-02-18 23:46:30 -05:00
seg_helper.c x86: Clean up includes 2018-02-19 01:00:09 -05:00
shift_helper_template.h
smm_helper.c x86: Clean up includes 2018-02-19 01:00:09 -05:00
svm.h
svm_helper.c x86: Clean up includes 2018-02-19 01:00:09 -05:00
TODO
topology.h
translate.c tcg: Remove lingering references to gen_opc_buf 2018-02-19 01:42:55 -05:00
unicorn.c target-i386: Rename XMM_[BWLSDQ] helpers to ZMM_* 2018-02-18 23:53:16 -05:00
unicorn.h