]> git.proxmox.com Git - mirror_qemu.git/blobdiff - scripts/cpu-x86-uarch-abi.py
hw/i2c: pmbus: add registers
[mirror_qemu.git] / scripts / cpu-x86-uarch-abi.py
index 08acc52a816fd6cb504ca74959f3a9f7c4994f43..c262d2f02778480a05fe19ef546d05fd05e07b81 100644 (file)
@@ -6,10 +6,10 @@
 # compatibility levels for each CPU model.
 #
 
-from qemu import qmp
+from qemu.aqmp.legacy import QEMUMonitorProtocol
 import sys
 
-if len(sys.argv) != 1:
+if len(sys.argv) != 2:
     print("syntax: %s QMP-SOCK\n\n" % __file__ +
           "Where QMP-SOCK points to a QEMU process such as\n\n" +
           " # qemu-system-x86_64 -qmp unix:/tmp/qmp,server,nowait " +
@@ -66,8 +66,7 @@ levels = [
 
 
 sock = sys.argv[1]
-cmd = sys.argv[2]
-shell = qmp.QEMUMonitorProtocol(sock)
+shell = QEMUMonitorProtocol(sock)
 shell.connect()
 
 models = shell.cmd("query-cpu-definitions")