From 9656f324d25895ec16ebc5eaf624e28a96c1f1be Mon Sep 17 00:00:00 2001 From: pbrook Date: Tue, 1 Jul 2008 20:01:19 +0000 Subject: 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 --- cpu-defs.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'cpu-defs.h') diff --git a/cpu-defs.h b/cpu-defs.h index 9621b94..cc69a3c 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). */ \ -- cgit v1.1