Commit 9886cc165ac2c594f62a597de2c7b4df9922e2e6
1 parent
ce09776b
factorized GenOpFunc
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@535 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
7 additions
and
1 deletions
exec-all.h
... | ... | @@ -64,6 +64,11 @@ extern uint32_t gen_opc_pc[OPC_BUF_SIZE]; |
64 | 64 | extern uint8_t gen_opc_cc_op[OPC_BUF_SIZE]; |
65 | 65 | extern uint8_t gen_opc_instr_start[OPC_BUF_SIZE]; |
66 | 66 | |
67 | +typedef void (GenOpFunc)(void); | |
68 | +typedef void (GenOpFunc1)(long); | |
69 | +typedef void (GenOpFunc2)(long, long); | |
70 | +typedef void (GenOpFunc3)(long, long, long); | |
71 | + | |
67 | 72 | #if defined(TARGET_I386) |
68 | 73 | |
69 | 74 | void optimize_flags_init(void); |
... | ... | @@ -498,7 +503,8 @@ extern spinlock_t tb_lock; |
498 | 503 | |
499 | 504 | extern int tb_invalidated_flag; |
500 | 505 | |
501 | -#if defined(TARGET_I386) && !defined(CONFIG_USER_ONLY) | |
506 | +#if (defined(TARGET_I386) || defined(TARGET_PPC)) && \ | |
507 | + !defined(CONFIG_USER_ONLY) | |
502 | 508 | |
503 | 509 | void tlb_fill(unsigned long addr, int is_write, int is_user, |
504 | 510 | void *retaddr); | ... | ... |