[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] qapi: misc: change the 'pc' to unsinged 64 in CpuIn
From: |
Li Qiang |
Subject: |
[Qemu-devel] [PATCH] qapi: misc: change the 'pc' to unsinged 64 in CpuInfo |
Date: |
Fri, 2 Nov 2018 04:01:03 -0700 |
When trigger a 'query-cpus' qmp, the pc is an signed value like
following:
{"arch": "x86", ... "pc": -1732653994, "halted": true,...}
It is strange. Change it to uint64_t.
Signed-off-by: Li Qiang <address@hidden>
---
qapi/misc.json | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/qapi/misc.json b/qapi/misc.json
index 6c1c5c0a37..621ec6ce13 100644
--- a/qapi/misc.json
+++ b/qapi/misc.json
@@ -407,7 +407,7 @@
#
# Since: 2.6
##
-{ 'struct': 'CpuInfoX86', 'data': { 'pc': 'int' } }
+{ 'struct': 'CpuInfoX86', 'data': { 'pc': 'uint64' } }
##
# @CpuInfoSPARC:
@@ -420,7 +420,7 @@
#
# Since: 2.6
##
-{ 'struct': 'CpuInfoSPARC', 'data': { 'pc': 'int', 'npc': 'int' } }
+{ 'struct': 'CpuInfoSPARC', 'data': { 'pc': 'uint64', 'npc': 'uint64' } }
##
# @CpuInfoPPC:
@@ -431,7 +431,7 @@
#
# Since: 2.6
##
-{ 'struct': 'CpuInfoPPC', 'data': { 'nip': 'int' } }
+{ 'struct': 'CpuInfoPPC', 'data': { 'nip': 'uint64' } }
##
# @CpuInfoMIPS:
@@ -442,7 +442,7 @@
#
# Since: 2.6
##
-{ 'struct': 'CpuInfoMIPS', 'data': { 'PC': 'int' } }
+{ 'struct': 'CpuInfoMIPS', 'data': { 'PC': 'uint64' } }
##
# @CpuInfoTricore:
@@ -453,7 +453,7 @@
#
# Since: 2.6
##
-{ 'struct': 'CpuInfoTricore', 'data': { 'PC': 'int' } }
+{ 'struct': 'CpuInfoTricore', 'data': { 'PC': 'uint64' } }
##
# @CpuInfoRISCV:
@@ -464,7 +464,7 @@
#
# Since 2.12
##
-{ 'struct': 'CpuInfoRISCV', 'data': { 'pc': 'int' } }
+{ 'struct': 'CpuInfoRISCV', 'data': { 'pc': 'uint64' } }
##
# @CpuS390State:
--
2.11.0
- [Qemu-devel] [PATCH] qapi: misc: change the 'pc' to unsinged 64 in CpuInfo,
Li Qiang <=