diff for duplicates of <1490171287-30893-3-git-send-email-thuth@redhat.com> diff --git a/a/1.txt b/N1/1.txt index 04197f4..32d95e5 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -113,7 +113,7 @@ index 0000000..9227eff + asm volatile (" sc 1 " : "+r"(r3), "+r"(r4), "=r"(r5) + : "r"(r3), "r"(r4)); + -+ return r3 = H_SUCCESS && r4 > 0 ? r5 >> 48 : 0; ++ return r3 == H_SUCCESS && r4 > 0 ? r5 >> 48 : 0; +} + +/* Common SPRs for all PowerPC CPUs */ @@ -341,7 +341,7 @@ index 0000000..9227eff + if (pause) { + handle_exception(0x100, &nmi_handler, NULL); + puts("Now migrate the VM, then press a key or send NMI...\n"); -+ while (!nmi_occurred && h_get_term_char(0) = 0) ++ while (!nmi_occurred && h_get_term_char(0) == 0) + cpu_relax(); + } else { + puts("Sleeping...\n"); @@ -355,8 +355,8 @@ index 0000000..9227eff + puts("Checking SPRs...\n"); + for (i = 0; i < 1024; i++) { + if (before[i] != 0 || after[i] != 0) -+ report("SPR %d:\t0x%016lx <=> 0x%016lx", -+ before[i] = after[i], i, before[i], after[i]); ++ report("SPR %d:\t0x%016lx <==> 0x%016lx", ++ before[i] == after[i], i, before[i], after[i]); + } + + return report_summary(); diff --git a/a/content_digest b/N1/content_digest index f3a805d..ddec753 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,7 +1,7 @@ "ref\01490171287-30893-1-git-send-email-thuth@redhat.com\0" "From\0Thomas Huth <thuth@redhat.com>\0" "Subject\0[kvm-unit-tests PATCH v4 2/2] powerpc: Add Special Purpose Register persistency test\0" - "Date\0Wed, 22 Mar 2017 08:28:07 +0000\0" + "Date\0Wed, 22 Mar 2017 09:28:07 +0100\0" "To\0kvm@vger.kernel.org" Laurent Vivier <lvivier@redhat.com> Drew Jones <drjones@redhat.com> @@ -127,7 +127,7 @@ "+\tasm volatile (\" sc 1 \"\t: \"+r\"(r3), \"+r\"(r4), \"=r\"(r5)\n" "+\t\t\t\t: \"r\"(r3), \"r\"(r4));\n" "+\n" - "+\treturn r3 = H_SUCCESS && r4 > 0 ? r5 >> 48 : 0;\n" + "+\treturn r3 == H_SUCCESS && r4 > 0 ? r5 >> 48 : 0;\n" "+}\n" "+\n" "+/* Common SPRs for all PowerPC CPUs */\n" @@ -355,7 +355,7 @@ "+\tif (pause) {\n" "+\t\thandle_exception(0x100, &nmi_handler, NULL);\n" "+\t\tputs(\"Now migrate the VM, then press a key or send NMI...\\n\");\n" - "+\t\twhile (!nmi_occurred && h_get_term_char(0) = 0)\n" + "+\t\twhile (!nmi_occurred && h_get_term_char(0) == 0)\n" "+\t\t\tcpu_relax();\n" "+\t} else {\n" "+\t\tputs(\"Sleeping...\\n\");\n" @@ -369,8 +369,8 @@ "+\tputs(\"Checking SPRs...\\n\");\n" "+\tfor (i = 0; i < 1024; i++) {\n" "+\t\tif (before[i] != 0 || after[i] != 0)\n" - "+\t\t\treport(\"SPR %d:\\t0x%016lx <=> 0x%016lx\",\n" - "+\t\t\t\tbefore[i] = after[i], i, before[i], after[i]);\n" + "+\t\t\treport(\"SPR %d:\\t0x%016lx <==> 0x%016lx\",\n" + "+\t\t\t\tbefore[i] == after[i], i, before[i], after[i]);\n" "+\t}\n" "+\n" "+\treturn report_summary();\n" @@ -391,4 +391,4 @@ "-- \n" 1.8.3.1 -33bff8ce0533aca7e158be90dbdd3276c9fb8e53ab3b0230a47d9e9d6138bbc9 +0c8428e063fe319c467457eea0294a2501efc4f7c58f452ecd39b08312bcbcc4
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.