[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 04/12] target/ppc: fix doorbell and hypervisor doorbe
From: |
David Gibson |
Subject: |
[Qemu-devel] [PULL 04/12] target/ppc: fix doorbell and hypervisor doorbell definitions |
Date: |
Sun, 21 Jan 2018 16:33:45 +1100 |
From: Cédric Le Goater <address@hidden>
commit f03a1af581b9 ("ppc: Fix POWER7 and POWER8 exception definitions")
introduced definitions for the server doorbell exceptions by reusing
the embedded definitions but this adds complexity in the powerpc_excp()
routine. Let's introduce specific definitions for the Server doorbells
exception.
Signed-off-by: Cédric Le Goater <address@hidden>
Signed-off-by: David Gibson <address@hidden>
---
target/ppc/cpu.h | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/target/ppc/cpu.h b/target/ppc/cpu.h
index 14aaa87fe8..b8f4dfc108 100644
--- a/target/ppc/cpu.h
+++ b/target/ppc/cpu.h
@@ -140,9 +140,6 @@ enum {
POWERPC_EXCP_HYPPRIV = 41, /* Embedded hypervisor priv instruction */
/* Vectors 42 to 63 are reserved */
/* Exceptions defined in the PowerPC server specification */
- /* Server doorbell variants */
-#define POWERPC_EXCP_SDOOR POWERPC_EXCP_GDOORI
-#define POWERPC_EXCP_SDOOR_HV POWERPC_EXCP_DOORI
POWERPC_EXCP_RESET = 64, /* System reset exception */
POWERPC_EXCP_DSEG = 65, /* Data segment exception */
POWERPC_EXCP_ISEG = 66, /* Instruction segment exception */
@@ -189,8 +186,11 @@ enum {
POWERPC_EXCP_HV_EMU = 96, /* HV emulation assistance */
POWERPC_EXCP_HV_MAINT = 97, /* HMI */
POWERPC_EXCP_HV_FU = 98, /* Hypervisor Facility unavailable */
+ /* Server doorbell variants */
+ POWERPC_EXCP_SDOOR = 99,
+ POWERPC_EXCP_SDOOR_HV = 100,
/* EOL */
- POWERPC_EXCP_NB = 99,
+ POWERPC_EXCP_NB = 101,
/* QEMU exceptions: used internally during code translation */
POWERPC_EXCP_STOP = 0x200, /* stop translation */
POWERPC_EXCP_BRANCH = 0x201, /* branch instruction */
--
2.14.3
- [Qemu-devel] [PULL 00/12] ppc-for-2.12 queue 20180121, David Gibson, 2018/01/21
- [Qemu-devel] [PULL 03/12] hw/ppc/Makefile: Add a way to disable the PPC4xx boards, David Gibson, 2018/01/21
- [Qemu-devel] [PULL 01/12] default-configs/ppc64-softmmu: Include 32-bit configs instead of copying them, David Gibson, 2018/01/21
- [Qemu-devel] [PULL 02/12] default-configs/ppc-softmmu: Restructure the switches according to the machines, David Gibson, 2018/01/21
- [Qemu-devel] [PULL 09/12] sm501: Add missing break to case, David Gibson, 2018/01/21
- [Qemu-devel] [PULL 12/12] target/ppc/spapr_caps: Add macro to generate spapr_caps migration vmstate, David Gibson, 2018/01/21
- [Qemu-devel] [PULL 04/12] target/ppc: fix doorbell and hypervisor doorbell definitions,
David Gibson <=
- [Qemu-devel] [PULL 08/12] target-ppc: optimize cmp translation, David Gibson, 2018/01/21
- [Qemu-devel] [PULL 10/12] sii3112: Add explicit type casts to avoid unintended sign extension, David Gibson, 2018/01/21
- [Qemu-devel] [PULL 05/12] target/ppc: msgsnd and msgclr instructions need hypervisor privilege, David Gibson, 2018/01/21
- [Qemu-devel] [PULL 07/12] spapr: fix device tree properties when using compatibility mode, David Gibson, 2018/01/21
- [Qemu-devel] [PULL 06/12] spapr: drop duplicate variable in spapr_core_plug(), David Gibson, 2018/01/21
- [Qemu-devel] [PULL 11/12] target/ppc: add support for hypervisor doorbells on book3s CPUs, David Gibson, 2018/01/21
- Re: [Qemu-devel] [PULL 00/12] ppc-for-2.12 queue 20180121, Peter Maydell, 2018/01/22