diff --git a/tests/qemumonitorjsondata/qemumonitorjson-getcpu-ecx.data b/tests/qemumonitorjsondata/qemumonitorjson-getcpu-ecx.data new file mode 100644 index 0000000000000000000000000000000000000000..c39e3dc4d1433fb17c47618934124369430d7bda --- /dev/null +++ b/tests/qemumonitorjsondata/qemumonitorjson-getcpu-ecx.data @@ -0,0 +1,7 @@ + + + + + + + diff --git a/tests/qemumonitorjsondata/qemumonitorjson-getcpu-ecx.json b/tests/qemumonitorjsondata/qemumonitorjson-getcpu-ecx.json new file mode 100644 index 0000000000000000000000000000000000000000..9eca2dec1126a770028cb3a24df933e888f8349e --- /dev/null +++ b/tests/qemumonitorjsondata/qemumonitorjson-getcpu-ecx.json @@ -0,0 +1,57 @@ +{ + "return": [ + { + "cpuid-register": "EAX", + "cpuid-input-ecx": 1, + "cpuid-input-eax": 13, + "features": 1 + }, + { + "cpuid-register": "EDX", + "cpuid-input-eax": 2147483658, + "features": 0 + }, + { + "cpuid-register": "EAX", + "cpuid-input-eax": 1073741825, + "features": 16777467 + }, + { + "cpuid-register": "EDX", + "cpuid-input-eax": 3221225473, + "features": 0 + }, + { + "cpuid-register": "EDX", + "cpuid-input-eax": 2147483655, + "features": 0 + }, + { + "cpuid-register": "ECX", + "cpuid-input-eax": 2147483649, + "features": 289 + }, + { + "cpuid-register": "EDX", + "cpuid-input-eax": 2147483649, + "features": 739248128 + }, + { + "cpuid-register": "EBX", + "cpuid-input-ecx": 0, + "cpuid-input-eax": 7, + "features": 1839035 + }, + { + "cpuid-register": "ECX", + "cpuid-input-eax": 1, + "features": 4160369155 + }, + { + "cpuid-register": "EDX", + "cpuid-input-eax": 1, + "features": 260832255 + } + ], + "id": "feature-words" +} diff --git a/tests/qemumonitorjsontest.c b/tests/qemumonitorjsontest.c index 957a80fb1cbb119c3ac89ecb783f108e1f49e16e..2cd824f8e972cfdfd1eb7f7db1eabeac47216248 100644 --- a/tests/qemumonitorjsontest.c +++ b/tests/qemumonitorjsontest.c @@ -2431,6 +2431,7 @@ mymain(void) DO_TEST_CPU_DATA("host"); DO_TEST_CPU_DATA("full"); + DO_TEST_CPU_DATA("ecx"); qemuTestDriverFree(&driver);