| 1 |
/* |
| 2 |
* Cisco router simulation platform. |
| 3 |
* Copyright (c) 2005,2006 Christophe Fillot ([email protected]) |
| 4 |
*/ |
| 5 |
|
| 6 |
#ifndef __PPC32_NOJIT_TRANS_H__ |
| 7 |
#define __PPC32_NOJIT_TRANS_H__ |
| 8 |
|
| 9 |
#include "utils.h" |
| 10 |
#include "x86-codegen.h" |
| 11 |
#include "cpu.h" |
| 12 |
#include "ppc32_exec.h" |
| 13 |
#include "dynamips.h" |
| 14 |
|
| 15 |
#define JIT_SUPPORT 0 |
| 16 |
|
| 17 |
/* Wrappers to x86-codegen functions */ |
| 18 |
#define ppc32_jit_tcb_set_patch(a,b) (void)(a); (void)(b) |
| 19 |
#define ppc32_jit_tcb_set_jump(a,b) (void)(a); (void)(b) |
| 20 |
|
| 21 |
/* PPC instruction array */ |
| 22 |
extern struct ppc32_insn_tag ppc32_insn_tags[]; |
| 23 |
|
| 24 |
/* Push epilog for an x86 instruction block */ |
| 25 |
void ppc32_jit_tcb_push_epilog(u_char **ptr); |
| 26 |
|
| 27 |
/* Execute JIT code */ |
| 28 |
void ppc32_jit_tcb_exec(cpu_ppc_t *cpu,ppc32_jit_tcb_t *block); |
| 29 |
|
| 30 |
#endif |