[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 8/8] irq: Privatize CPU_INTERRUPT_NMI.
From: |
Richard Henderson |
Subject: |
[Qemu-devel] [PATCH 8/8] irq: Privatize CPU_INTERRUPT_NMI. |
Date: |
Wed, 4 May 2011 13:34:31 -0700 |
This interrupt name is used by i386, CRIS, and MicroBlaze.
Copy the name into each target.
Signed-off-by: Richard Henderson <address@hidden>
---
cpu-all.h | 4 ----
poison.h | 1 -
target-cris/cpu.h | 3 +++
target-i386/cpu.h | 1 +
target-microblaze/cpu.h | 3 +++
5 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/cpu-all.h b/cpu-all.h
index 39dfa46..54df1d3 100644
--- a/cpu-all.h
+++ b/cpu-all.h
@@ -826,10 +826,6 @@ extern CPUState *cpu_single_env;
/* First unused bit: 0x2000. */
-/* Temporary remapping from the generic names back to the previous
- cpu-specific names. These will be moved to target-foo/cpu.h next. */
-#define CPU_INTERRUPT_NMI CPU_INTERRUPT_TGT_EXT_3
-
/* The set of all bits that should be masked when single-stepping. */
#define CPU_INTERRUPT_SSTEP_MASK \
(CPU_INTERRUPT_HARD \
diff --git a/poison.h b/poison.h
index 4fcf46d..2b18232 100644
--- a/poison.h
+++ b/poison.h
@@ -41,7 +41,6 @@
#pragma GCC poison CPU_INTERRUPT_EXITTB
#pragma GCC poison CPU_INTERRUPT_HALT
#pragma GCC poison CPU_INTERRUPT_DEBUG
-#pragma GCC poison CPU_INTERRUPT_NMI
#pragma GCC poison CPU_INTERRUPT_TGT_EXT_0
#pragma GCC poison CPU_INTERRUPT_TGT_EXT_1
#pragma GCC poison CPU_INTERRUPT_TGT_EXT_2
diff --git a/target-cris/cpu.h b/target-cris/cpu.h
index d908775..8686dba 100644
--- a/target-cris/cpu.h
+++ b/target-cris/cpu.h
@@ -36,6 +36,9 @@
#define EXCP_IRQ 4
#define EXCP_BREAK 5
+/* CRIS-specific interrupt pending bits. */
+#define CPU_INTERRUPT_NMI CPU_INTERRUPT_TGT_EXT_3
+
/* Register aliases. R0 - R15 */
#define R_FP 8
#define R_SP 14
diff --git a/target-i386/cpu.h b/target-i386/cpu.h
index 1fc421f..715828f 100644
--- a/target-i386/cpu.h
+++ b/target-i386/cpu.h
@@ -468,6 +468,7 @@
/* i386-specific interrupt pending bits. */
#define CPU_INTERRUPT_SMI CPU_INTERRUPT_TGT_EXT_2
+#define CPU_INTERRUPT_NMI CPU_INTERRUPT_TGT_EXT_3
#define CPU_INTERRUPT_MCE CPU_INTERRUPT_TGT_EXT_4
#define CPU_INTERRUPT_VIRQ CPU_INTERRUPT_TGT_INT_0
#define CPU_INTERRUPT_INIT CPU_INTERRUPT_TGT_INT_1
diff --git a/target-microblaze/cpu.h b/target-microblaze/cpu.h
index 536222e..78fe14ff 100644
--- a/target-microblaze/cpu.h
+++ b/target-microblaze/cpu.h
@@ -41,6 +41,9 @@ struct CPUMBState;
#define EXCP_HW_BREAK 5
#define EXCP_HW_EXCP 6
+/* MicroBlaze-specific interrupt pending bits. */
+#define CPU_INTERRUPT_NMI CPU_INTERRUPT_TGT_EXT_3
+
/* Register aliases. R0 - R15 */
#define R_SP 1
#define SR_PC 0
--
1.7.4.4
- [Qemu-devel] [PATCH 0/8] cpu interrupt cleanup, v2, Richard Henderson, 2011/05/04
- [Qemu-devel] [PATCH 1/8] irq: Introduce CPU_INTERRUPT_TGT_* defines., Richard Henderson, 2011/05/04
- [Qemu-devel] [PATCH 3/8] target-mips: Do not check CPU_INTERRUPT_TIMER., Richard Henderson, 2011/05/04
- [Qemu-devel] [PATCH 4/8] target-sparc: Do not check CPU_INTERRUPT_TIMER., Richard Henderson, 2011/05/04
- [Qemu-devel] [PATCH 5/8] irq: Remove CPU_INTERRUPT_TIMER., Richard Henderson, 2011/05/04
- [Qemu-devel] [PATCH 2/8] irq: Introduce and use CPU_INTERRUPT_SSTEP_MASK., Richard Henderson, 2011/05/04
- [Qemu-devel] [PATCH 6/8] target-arm: Privatize CPU_INTERRUPT_FIQ., Richard Henderson, 2011/05/04
- [Qemu-devel] [PATCH 7/8] target-i386: Privatize some i386-specific interrupt names., Richard Henderson, 2011/05/04
- [Qemu-devel] [PATCH 8/8] irq: Privatize CPU_INTERRUPT_NMI.,
Richard Henderson <=
- Re: [Qemu-devel] [PATCH 0/8] cpu interrupt cleanup, v2, Richard Henderson, 2011/05/08