#
9c5e1913 |
| 26-Feb-2024 |
Nicholas Piggin <npiggin@gmail.com> |
powerpc: Cleanup SPR and MSR definitions
Move SPR and MSR defines out of ppc_asm.h and processor.h and into a new include, asm/reg.h.
Add a define for the PVR SPR and various processor versions, an
powerpc: Cleanup SPR and MSR definitions
Move SPR and MSR defines out of ppc_asm.h and processor.h and into a new include, asm/reg.h.
Add a define for the PVR SPR and various processor versions, and replace the open coded numbers in the sprs.c test case.
Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Message-ID: <20240226101218.1472843-6-npiggin@gmail.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
show more ...
|
#
56fb1494 |
| 16-Dec-2023 |
Nicholas Piggin <npiggin@gmail.com> |
powerpc: Add support for more interrupts including HV interrupts
Interrupt vectors were not being populated for all architected interrupt types, which could lead to crashes rather than a message for
powerpc: Add support for more interrupts including HV interrupts
Interrupt vectors were not being populated for all architected interrupt types, which could lead to crashes rather than a message for unhandled interrupts.
0x20 sized vectors require some reworking of the code to fit. This also adds support for HV / HSRR type interrupts which will be used in a later change.
Acked-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Message-ID: <20231216134257.1743345-16-npiggin@gmail.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
show more ...
|
#
ba33a96f |
| 08-Jun-2023 |
Nicholas Piggin <npiggin@gmail.com> |
powerpc: Abstract H_CEDE calls into a sleep functions
This consolidates several implementations, and it no longer leaves MSR[EE] enabled after the decrementer interrupt is handled, but rather disabl
powerpc: Abstract H_CEDE calls into a sleep functions
This consolidates several implementations, and it no longer leaves MSR[EE] enabled after the decrementer interrupt is handled, but rather disables it on return.
The handler no longer allows a continuous ticking, but rather dec has to be re-armed and EE re-enabled (e.g., via H_CEDE hcall) each time.
Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Message-Id: <20230608075826.86217-4-npiggin@gmail.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
show more ...
|
#
72469178 |
| 06-Dec-2022 |
Thomas Huth <thuth@redhat.com> |
powerpc: Fix running the kvm-unit-tests with recent versions of QEMU
Starting with version 7.0, QEMU starts the pseries guests in 32-bit mode instead of 64-bit (see QEMU commit 6e3f09c28a - "spapr:
powerpc: Fix running the kvm-unit-tests with recent versions of QEMU
Starting with version 7.0, QEMU starts the pseries guests in 32-bit mode instead of 64-bit (see QEMU commit 6e3f09c28a - "spapr: Force 32bit when resetting a core"). This causes our test_64bit() in powerpc/emulator.c to fail. Let's switch to 64-bit in our startup code instead to fix the issue.
Message-Id: <20221206110851.154297-1-thuth@redhat.com> Reviewed-by: Cédric Le Goater <clg@kaod.org> Signed-off-by: Thomas Huth <thuth@redhat.com>
show more ...
|
#
6842bc34 |
| 21-Mar-2016 |
Laurent Vivier <lvivier@redhat.com> |
powerpc: add exception handler
Signed-off-by: Laurent Vivier <lvivier@redhat.com> Reviewed-by: David Gibson <dgibson@redhat.com> Message-Id: <1458560014-28862-2-git-send-email-lvivier@redhat.com> Si
powerpc: add exception handler
Signed-off-by: Laurent Vivier <lvivier@redhat.com> Reviewed-by: David Gibson <dgibson@redhat.com> Message-Id: <1458560014-28862-2-git-send-email-lvivier@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
show more ...
|
#
f1ccf5d2 |
| 01-Mar-2016 |
Laurent Vivier <lvivier@redhat.com> |
powerpc: select endianness
This patch allows to build tests for ppc64 little endian target (ppc64le) on big and little endian hosts.
We add a new parameter to configure to select the endianness of
powerpc: select endianness
This patch allows to build tests for ppc64 little endian target (ppc64le) on big and little endian hosts.
We add a new parameter to configure to select the endianness of the tests (--endian=little or --endian=big).
I have built and tested big and little endian tests on a little endian host, a big endian host, with kvm_hv and kvm_pr, and on x86_64 with ppc64 as a TCG target.
Signed-off-by: Laurent Vivier <lvivier@redhat.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Message-Id: <1456824930-15078-3-git-send-email-lvivier@redhat.com> Reviewed-by: Andrew Jones <drjones@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
show more ...
|
#
4764c05f |
| 01-Mar-2016 |
Laurent Vivier <lvivier@redhat.com> |
powerpc: add asm/ppc_asm.h
Move LOAD_REG_IMMEDIATE() and LOAD_REG_ADDR() from cstart64.S to ppc_asm.h
Signed-off-by: Laurent Vivier <lvivier@redhat.com> Reviewed-by: Andrew Jones <drjones@redhat.co
powerpc: add asm/ppc_asm.h
Move LOAD_REG_IMMEDIATE() and LOAD_REG_ADDR() from cstart64.S to ppc_asm.h
Signed-off-by: Laurent Vivier <lvivier@redhat.com> Reviewed-by: Andrew Jones <drjones@redhat.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Message-Id: <1456824930-15078-2-git-send-email-lvivier@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
show more ...
|