[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-ppc] [PATCH 2/7] PPC: E500: Add doorbell defines
From: |
Alexander Graf |
Subject: |
[Qemu-ppc] [PATCH 2/7] PPC: E500: Add doorbell defines |
Date: |
Tue, 31 Jan 2012 03:27:39 +0100 |
We're going to introduce doorbell instructions (called processor
control in the spec) soon. Add some defines for easier patch
readability later.
Signed-off-by: Alexander Graf <address@hidden>
---
target-ppc/cpu.h | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/target-ppc/cpu.h b/target-ppc/cpu.h
index c7a6427..f9cea3d 100644
--- a/target-ppc/cpu.h
+++ b/target-ppc/cpu.h
@@ -858,6 +858,22 @@ enum {
#define BOOKE206_MAX_TLBN 4
/*****************************************************************************/
+/* Embedded.Processor Control */
+
+#define DBELL_TYPE_SHIFT 27
+#define DBELL_TYPE_MASK (0x1f << DBELL_TYPE_SHIFT)
+#define DBELL_TYPE_DBELL (0x00 << DBELL_TYPE_SHIFT)
+#define DBELL_TYPE_DBELL_CRIT (0x01 << DBELL_TYPE_SHIFT)
+#define DBELL_TYPE_G_DBELL (0x02 << DBELL_TYPE_SHIFT)
+#define DBELL_TYPE_G_DBELL_CRIT (0x03 << DBELL_TYPE_SHIFT)
+#define DBELL_TYPE_G_DBELL_MC (0x04 << DBELL_TYPE_SHIFT)
+
+#define DBELL_BRDCAST (1 << 26)
+#define DBELL_LPIDTAG_SHIFT 14
+#define DBELL_LPIDTAG_MASK (0xfff << DBELL_LPIDTAG_SHIFT)
+#define DBELL_PIRTAG_MASK 0x3fff
+
+/*****************************************************************************/
/* The whole PowerPC CPU context */
#define NB_MMU_MODES 3
--
1.6.0.2
- [Qemu-ppc] [PATCH 0/7] Enable doorbell for e500mc, Alexander Graf, 2012/01/30
- [Qemu-ppc] [PATCH 6/7] PPC: E500: Implement msgsnd, Alexander Graf, 2012/01/30
- [Qemu-ppc] [PATCH 4/7] PPC: Enable doorbell excp handlers, Alexander Graf, 2012/01/30
- [Qemu-ppc] [PATCH 3/7] PPC: Add CPU feature for processor control, Alexander Graf, 2012/01/30
- [Qemu-ppc] [PATCH 5/7] PPC: E500: Implement msgclr, Alexander Graf, 2012/01/30
- [Qemu-ppc] [PATCH 7/7] PPC: e500mc: Enable processor control, Alexander Graf, 2012/01/30
- [Qemu-ppc] [PATCH 2/7] PPC: E500: Add doorbell defines,
Alexander Graf <=
- [Qemu-ppc] [PATCH 1/7] PPC: E500: Add some more excp vectors, Alexander Graf, 2012/01/30