[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 05/19] include/exec: Move standard exceptions to cpu-
From: |
Paolo Bonzini |
Subject: |
[Qemu-devel] [PULL 05/19] include/exec: Move standard exceptions to cpu-all.h |
Date: |
Mon, 6 Jul 2015 14:34:54 +0200 |
From: Peter Crosthwaite <address@hidden>
These exception indicies are generic and don't have any reliance on the
per-arch cpu.h defs. Move them to cpu-all.h so they can be used by core
code that does not have access to cpu-defs.h.
Reviewed-by: Richard Henderson <address@hidden>
Signed-off-by: Peter Crosthwaite <address@hidden>
Message-Id: <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>
---
include/exec/cpu-all.h | 6 ++++++
include/exec/cpu-defs.h | 6 ------
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/include/exec/cpu-all.h b/include/exec/cpu-all.h
index ac06c67..8999634 100644
--- a/include/exec/cpu-all.h
+++ b/include/exec/cpu-all.h
@@ -26,6 +26,12 @@
#include "qom/cpu.h"
#include "qemu/rcu.h"
+#define EXCP_INTERRUPT 0x10000 /* async interruption */
+#define EXCP_HLT 0x10001 /* hlt instruction reached */
+#define EXCP_DEBUG 0x10002 /* cpu stopped after a breakpoint or
singlestep */
+#define EXCP_HALTED 0x10003 /* cpu is halted (waiting for external event)
*/
+#define EXCP_YIELD 0x10004 /* cpu wants to yield timeslice to another */
+
/* some important defines:
*
* WORDS_ALIGNED : if defined, the host cpu can only make word aligned
diff --git a/include/exec/cpu-defs.h b/include/exec/cpu-defs.h
index 817889b..247829c 100644
--- a/include/exec/cpu-defs.h
+++ b/include/exec/cpu-defs.h
@@ -56,12 +56,6 @@ typedef uint64_t target_ulong;
#error TARGET_LONG_SIZE undefined
#endif
-#define EXCP_INTERRUPT 0x10000 /* async interruption */
-#define EXCP_HLT 0x10001 /* hlt instruction reached */
-#define EXCP_DEBUG 0x10002 /* cpu stopped after a breakpoint or
singlestep */
-#define EXCP_HALTED 0x10003 /* cpu is halted (waiting for external event)
*/
-#define EXCP_YIELD 0x10004 /* cpu wants to yield timeslice to another */
-
/* Only the bottom TB_JMP_PAGE_BITS of the jump cache hash bits vary for
addresses on the same page. The top bits are the same. This allows
TLB invalidation to quickly clear a subset of the hash table. */
--
2.4.3
- [Qemu-devel] [PULL 00/19] Multithread, multiarch, multicompiler, multi^WKVM changes for 2015-07-06, Paolo Bonzini, 2015/07/06
- [Qemu-devel] [PULL 02/19] cutils: allow compilation with icc, Paolo Bonzini, 2015/07/06
- [Qemu-devel] [PULL 01/19] qemu-common: add VEC_OR macro, Paolo Bonzini, 2015/07/06
- [Qemu-devel] [PULL 04/19] cpu-defs: Move CPU_TEMP_BUF_NLONGS to tcg, Paolo Bonzini, 2015/07/06
- [Qemu-devel] [PULL 05/19] include/exec: Move standard exceptions to cpu-all.h,
Paolo Bonzini <=
- [Qemu-devel] [PULL 07/19] cpu-defs: Move out TB_JMP defines, Paolo Bonzini, 2015/07/06
- [Qemu-devel] [PULL 03/19] memory_mapping: Rework cpu related includes, Paolo Bonzini, 2015/07/06
- [Qemu-devel] [PULL 06/19] include/exec: Move tb hash functions out, Paolo Bonzini, 2015/07/06
- [Qemu-devel] [PULL 08/19] Fix irq route entries exceeding KVM_MAX_IRQ_ROUTES, Paolo Bonzini, 2015/07/06
- [Qemu-devel] [PULL 09/19] main-loop: use qemu_mutex_lock_iothread consistently, Paolo Bonzini, 2015/07/06
- [Qemu-devel] [PULL 11/19] memory: Add global-locking property to memory regions, Paolo Bonzini, 2015/07/06
- [Qemu-devel] [PULL 12/19] exec: pull qemu_flush_coalesced_mmio_buffer() into address_space_rw/ld*/st*, Paolo Bonzini, 2015/07/06
- [Qemu-devel] [PULL 13/19] memory: let address_space_rw/ld*/st* run outside the BQL, Paolo Bonzini, 2015/07/06
- [Qemu-devel] [PULL 10/19] main-loop: introduce qemu_mutex_iothread_locked, Paolo Bonzini, 2015/07/06
- [Qemu-devel] [PULL 15/19] kvm: Switch to unlocked PIO, Paolo Bonzini, 2015/07/06