#
62cdf7a5 |
| 06-Nov-2023 |
Nico Boehr <nrb@linux.ibm.com> |
powerpc: properly format non-kernel-doc comments
These comments do not follow the kernel-doc style, hence they should not start with /**.
Signed-off-by: Nico Boehr <nrb@linux.ibm.com> Reviewed-by:
powerpc: properly format non-kernel-doc comments
These comments do not follow the kernel-doc style, hence they should not start with /**.
Signed-off-by: Nico Boehr <nrb@linux.ibm.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Message-ID: <20231106125352.859992-3-nrb@linux.ibm.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
show more ...
|
#
875ebbc7 |
| 08-Jun-2023 |
Nicholas Piggin <npiggin@gmail.com> |
powerpc: Extract some common helpers and defines to headers
Move some common helpers and defines to processor.h.
Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Message-Id: <20230608075826.86217
powerpc: Extract some common helpers and defines to headers
Move some common helpers and defines to processor.h.
Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Message-Id: <20230608075826.86217-6-npiggin@gmail.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
show more ...
|
#
a299895b |
| 06-Dec-2019 |
Thomas Huth <thuth@redhat.com> |
Switch the order of the parameters in report() and report_xfail()
Commit c09c54c66b1df ("lib: use an argument which doesn't require default argument promotion") fixed a warning that occurs with Clan
Switch the order of the parameters in report() and report_xfail()
Commit c09c54c66b1df ("lib: use an argument which doesn't require default argument promotion") fixed a warning that occurs with Clang, but introduced a regression: If the "pass" parameter is a value which has only set the condition bits in the upper 32 bits of a 64 bit value, the condition is now false since the value is truncated to "unsigned int" so that the upper bits are simply discarded.
We fixed it by reverting the commit, but that of course also means trouble with Clang again. We can not use "bool" if it is the last parameter before the variable argument list. The proper fix is to swap the parameters around and make the format string the last parameter.
This patch (except the changes in lib/libcflat.h and lib/report.c and some rebase conflicts along the way) has basically been created with following coccinelle script (with some additional manual tweaking of long and disabled lines afterwards):
@@ expression fmt; expression pass; expression list args; @@ report( -fmt, pass +pass, fmt , args);
@@ expression fmt; expression pass; expression list args; @@ report_xfail( -fmt, xfail, pass +xfail, pass, fmt , args);
Tested-by: Andrew Jones <drjones@redhat.com> Signed-off-by: Thomas Huth <thuth@redhat.com> Message-Id: <20191206113102.14914-1-thuth@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
show more ...
|
#
ec410185 |
| 13-Jul-2018 |
Paolo Bonzini <pbonzini@redhat.com> |
Merge tag 's390x-ppc-2018-06-26' of https://gitlab.com/huth/kvm-unit-tests into HEAD
Mark tests as "SKIP" instead of "XFAIL" if a feature is missing. Fix compiling of the tests for powerpc when usin
Merge tag 's390x-ppc-2018-06-26' of https://gitlab.com/huth/kvm-unit-tests into HEAD
Mark tests as "SKIP" instead of "XFAIL" if a feature is missing. Fix compiling of the tests for powerpc when using GCC 8. Remove an unnecessary and annoying ELF section in the s390x tests.
show more ...
|
#
831d679a |
| 18-Jun-2018 |
Thomas Huth <thuth@redhat.com> |
powerpc: Report missing features as "skip", not as "expected failure"
Missing CPU or hypervisor features are not a real error, so we should rather report a "skip" here than an "expected failure".
S
powerpc: Report missing features as "skip", not as "expected failure"
Missing CPU or hypervisor features are not a real error, so we should rather report a "skip" here than an "expected failure".
Signed-off-by: Thomas Huth <thuth@redhat.com>
show more ...
|
#
fd6aada0 |
| 17-May-2017 |
Radim Krčmář <rkrcmar@redhat.com> |
use %# instead of 0x% in all format strings
It's one character shorter, properly prefixed, and also provides error detection: %#d triggers a warning.
Done with `sed -i 's/0x%/%#/g' **/*.[ch]` to mo
use %# instead of 0x% in all format strings
It's one character shorter, properly prefixed, and also provides error detection: %#d triggers a warning.
Done with `sed -i 's/0x%/%#/g' **/*.[ch]` to motivate the use of %#, existing padding was raised by 2 to account for the counted "0x" (output should be the same).
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
show more ...
|
#
2ce7a6c7 |
| 17-May-2017 |
Radim Krčmář <rkrcmar@redhat.com> |
fix conversions in report()s
Fix conversions that would trigger a warning if the format was checked by a compiler.
Reviewed-by: Thomas Huth <thuth@redhat.com> Reviewed-by: David Hildenbrand <david@
fix conversions in report()s
Fix conversions that would trigger a warning if the format was checked by a compiler.
Reviewed-by: Thomas Huth <thuth@redhat.com> Reviewed-by: David Hildenbrand <david@redhat.com> Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
show more ...
|
#
a9abb1b8 |
| 12-Jun-2016 |
Andrew Jones <drjones@redhat.com> |
powerpc/ppc64: reserve argv[0] for prognam
Signed-off-by: Andrew Jones <drjones@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
|
#
43c8bace |
| 03-Mar-2016 |
Thomas Huth <thuth@redhat.com> |
powerpc/spapr_hcall: Fix assembler constraints of the h_random h-call
As noted by Laurent Vivier, a register that is marked with "+r" as input and output is not required to be listed in the set of i
powerpc/spapr_hcall: Fix assembler constraints of the h_random h-call
As noted by Laurent Vivier, a register that is marked with "+r" as input and output is not required to be listed in the set of input registers anymore. And as noted by David Gibson, the sPAPR hypercall is also allowed to clobber a bunch of other registers. According to the LoPAPR spec, r0 and r3-r12, CTR, XER and CC registers are volatile, so we should mark them in the clobber list.
Signed-off-by: Thomas Huth <thuth@redhat.com> Message-Id: <1457004188-17186-1-git-send-email-thuth@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
show more ...
|
#
c20e1e54 |
| 02-Mar-2016 |
Thomas Huth <thuth@redhat.com> |
powerpc: Add tests for sPAPR h-calls
Introduce a test for sPAPR hypercalls, starting with the three hypercalls H_SET_SPRG0, H_PAGE_INIT and H_RANDOM.
Signed-off-by: Thomas Huth <thuth@redhat.com> M
powerpc: Add tests for sPAPR h-calls
Introduce a test for sPAPR hypercalls, starting with the three hypercalls H_SET_SPRG0, H_PAGE_INIT and H_RANDOM.
Signed-off-by: Thomas Huth <thuth@redhat.com> Message-Id: <1456908043-11184-1-git-send-email-thuth@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
show more ...
|