diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2004-09-30 22:22:08 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2004-09-30 22:22:08 +0000 |
commit | e95c8d51c2a47d7ccb422f83446cb91a18f8f37d (patch) | |
tree | 8a8e42f76ff8a7a6f02bda71f52306230e575c9c /exec-all.h | |
parent | 4971b827da65526bbe3e6a2ee2d9ba182f056ac5 (diff) |
full system SPARC emulation (Blue Swirl)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1087 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'exec-all.h')
-rw-r--r-- | exec-all.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/exec-all.h b/exec-all.h index b6853a1af6..2e886e07c8 100644 --- a/exec-all.h +++ b/exec-all.h @@ -56,6 +56,7 @@ struct TranslationBlock; extern uint16_t gen_opc_buf[OPC_BUF_SIZE]; extern uint32_t gen_opparam_buf[OPPARAM_BUF_SIZE]; extern uint32_t gen_opc_pc[OPC_BUF_SIZE]; +extern uint32_t gen_opc_npc[OPC_BUF_SIZE]; extern uint8_t gen_opc_cc_op[OPC_BUF_SIZE]; extern uint8_t gen_opc_instr_start[OPC_BUF_SIZE]; @@ -541,8 +542,7 @@ extern spinlock_t tb_lock; extern int tb_invalidated_flag; -#if (defined(TARGET_I386) || defined(TARGET_PPC)) && \ - !defined(CONFIG_USER_ONLY) +#if !defined(CONFIG_USER_ONLY) void tlb_fill(unsigned long addr, int is_write, int is_user, void *retaddr); @@ -585,6 +585,8 @@ static inline target_ulong get_phys_addr_code(CPUState *env, target_ulong addr) is_user = ((env->hflags & HF_CPL_MASK) == 3); #elif defined (TARGET_PPC) is_user = msr_pr; +#elif defined (TARGET_SPARC) + is_user = (env->psrs == 0); #else #error "Unimplemented !" #endif |