summary refs log tree commit diff stats
path: root/monitor/Makefile.objs
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2019-06-13 17:34:00 +0200
committerMarkus Armbruster <armbru@redhat.com>2019-06-17 20:36:56 +0200
commit7e3c0deab1b76f37ac0b3199324db976a6cd1b2c (patch)
treee3439f0373b6ddab20ead50a9878c105b081b56b /monitor/Makefile.objs
parent5bce308aaaab5b1b1a460b7f13940a132278e34c (diff)
downloadfocaccia-qemu-7e3c0deab1b76f37ac0b3199324db976a6cd1b2c.tar.gz
focaccia-qemu-7e3c0deab1b76f37ac0b3199324db976a6cd1b2c.zip
monitor: Split out monitor/qmp.c
Move QMP infrastructure from monitor/misc.c to monitor/qmp.c. This is
code that can be shared for all targets, so compile it only once.

The amount of function and particularly extern variables in
monitor_int.h is probably a bit larger than it needs to be, but this way
no non-trivial code modifications are needed. The interfaces between QMP
and the monitor core can be cleaned up later.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Message-Id: <20190613153405.24769-11-kwolf@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
[monitor_is_qmp() tidied up to make checkpatch.pl happy,
superfluous #include dropped]
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'monitor/Makefile.objs')
-rw-r--r--monitor/Makefile.objs1
1 files changed, 1 insertions, 0 deletions
diff --git a/monitor/Makefile.objs b/monitor/Makefile.objs
index a7170af6e1..1037c09ff8 100644
--- a/monitor/Makefile.objs
+++ b/monitor/Makefile.objs
@@ -1,2 +1,3 @@
 obj-y += misc.o
+common-obj-y += qmp.o
 common-obj-y += qmp-cmds.o hmp-cmds.o