summaryrefslogtreecommitdiff
path: root/cpu-defs.h
diff options
context:
space:
mode:
authorpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2008-07-01 20:01:19 +0000
committerpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2008-07-01 20:01:19 +0000
commit9656f324d25895ec16ebc5eaf624e28a96c1f1be (patch)
tree493d25a4b894fea24ee91d07efea4309044ba54c /cpu-defs.h
parenta5cdf952204931960bbb269494469843be789b52 (diff)
Move interrupt_request and user_mode_only to common cpu state.
Save and restore env->interrupt_request and env->halted. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4817 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'cpu-defs.h')
-rw-r--r--cpu-defs.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/cpu-defs.h b/cpu-defs.h
index 9621b947d..cc69a3c0c 100644
--- a/cpu-defs.h
+++ b/cpu-defs.h
@@ -153,7 +153,8 @@ typedef struct icount_decr_u16 {
accessed */ \
target_ulong mem_io_vaddr; /* target virtual addr at which the \
memory was accessed */ \
- int halted; /* TRUE if the CPU is in suspend state */ \
+ uint32_t halted; /* Nonzero if the CPU is in suspend state */ \
+ uint32_t interrupt_request; \
/* The meaning of the MMU modes is defined in the target code. */ \
CPUTLBEntry tlb_table[NB_MMU_MODES][CPU_TLB_SIZE]; \
target_phys_addr_t iotlb[NB_MMU_MODES][CPU_TLB_SIZE]; \
@@ -188,6 +189,8 @@ typedef struct icount_decr_u16 {
jmp_buf jmp_env; \
int exception_index; \
\
+ int user_mode_only; \
+ \
void *next_cpu; /* next CPU sharing TB cache */ \
int cpu_index; /* CPU index (informative) */ \
int running; /* Nonzero if cpu is currently running(usermode). */ \