diff options
author | pbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-07-01 20:01:19 +0000 |
---|---|---|
committer | pbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-07-01 20:01:19 +0000 |
commit | 663d0824c7eb70c44e9066caf22390a1afcfc392 (patch) | |
tree | 493d25a4b894fea24ee91d07efea4309044ba54c /cpu-defs.h | |
parent | be5cb8ba2e9942139fb69bf75d2af1819dbff6ba (diff) | |
download | qemu-663d0824c7eb70c44e9066caf22390a1afcfc392.tar.gz qemu-663d0824c7eb70c44e9066caf22390a1afcfc392.tar.bz2 qemu-663d0824c7eb70c44e9066caf22390a1afcfc392.zip |
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.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cpu-defs.h b/cpu-defs.h index 9621b947d3..cc69a3c0c3 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). */ \ |