* A few more improvements to gx jit prototype.
[common/ChangeLog] 1998-12-01 Frank Ch. Eigler <fche@elastic.org> * sim-gx-run.c (sim_engine_run): Use new tgx_info struct to collect run-time arguments to gx block. * sim-gx.h (sim_gx_function): Corresponding signature change. * sim-gx.c (sim_gx_compiled_block_f): Remove nonfunctional code to again compile a gx block source file. (sim_gx_compiled_block_dispose): Uninstall obsoleted gx block shared libraries. (sim_gx_block_translate): Always emit new "gx_label_NNNN" labels, for basic block entry points, even if !__GNUC__. [m32r-gx/ChangeLog] 1998-12-01 Frank Ch. Eigler <fche@elastic.org> * Makefile.in (SIM_OBJS): Don't build sim-core.o. * configure.in: Added --enable-sim-inline support. Look for "getenv()" function. * configure: Rebuilt. * config.in: Rebuilt. * gx-translate.c: Include "sim-inline.c" for sim-core inlining. (m32r_gx_{load,store}*): Update signature. (tgx_emit_pre_function): Emit new "tgx_info" struct, update callback function signatures. (m32r_emit_*_insn): Use new callback signatures. For all short branches in optimized mode, emit direct "goto gx_label_NNNN". (tgx_optimize_test): If the GX_OPTIMIZE environment variable is set, allow its integer value to override the optimization heuristic. * m32r-sim.h: New empty placeholder file. * sim-main.c: New empty placeholder file. * sim-if.c (sim_create_inferior): Use NULL instead of &abort for unimplemented register fondling functions. * sim-main.h: Add multiple inclusion guard. Update callback function signatures. (tgx_info): New struct for collecting gx block invocation arguments.
This commit is contained in:
parent
1ab49c8481
commit
3d7075f5f5
14 changed files with 614 additions and 264 deletions
|
@ -1,4 +1,7 @@
|
|||
/* Main header for the m32r. */
|
||||
/* Main header for the m32r-gx. */
|
||||
|
||||
#ifndef SIM_MAIN_H
|
||||
#define SIM_MAIN_H
|
||||
|
||||
#define USING_SIM_BASE_H /* FIXME: quick hack */
|
||||
|
||||
|
@ -56,19 +59,28 @@ typedef struct tgx_syscall_data
|
|||
} tgx_syscall_data;
|
||||
|
||||
|
||||
struct tgx_info;
|
||||
|
||||
/* match with definition in gx-translate.c! */
|
||||
typedef struct tgx_callbacks
|
||||
{
|
||||
unsigned (*load)(unsigned pc, unsigned addr);
|
||||
void (*store)(unsigned pc, unsigned addr, unsigned data);
|
||||
signed char (*load1)(unsigned pc, unsigned addr);
|
||||
void (*store1)(unsigned pc, unsigned addr, signed char data);
|
||||
signed short (*load2)(unsigned pc, unsigned addr);
|
||||
void (*store2)(unsigned pc, unsigned addr, signed short data);
|
||||
void (*syscall)(tgx_syscall_data* data);
|
||||
unsigned (*load)(struct tgx_info* info, unsigned pc, unsigned addr);
|
||||
void (*store)(struct tgx_info* info, unsigned pc, unsigned addr, unsigned data);
|
||||
signed char (*load1)(struct tgx_info* info, unsigned pc, unsigned addr);
|
||||
void (*store1)(struct tgx_info* info, unsigned pc, unsigned addr, signed char data);
|
||||
signed short (*load2)(struct tgx_info* info, unsigned pc, unsigned addr);
|
||||
void (*store2)(struct tgx_info* info, unsigned pc, unsigned addr, signed short data);
|
||||
void (*syscall)(struct tgx_info* info, tgx_syscall_data* data);
|
||||
} tgx_callbacks;
|
||||
|
||||
|
||||
typedef struct tgx_info
|
||||
{
|
||||
struct tgx_cpu_regs* regs;
|
||||
char* pc_flags;
|
||||
struct tgx_callbacks* callbacks;
|
||||
} tgx_info;
|
||||
|
||||
|
||||
struct _sim_cpu
|
||||
{
|
||||
|
@ -92,3 +104,6 @@ struct sim_state {
|
|||
appropriate handler. */
|
||||
SI h_gr_get (SIM_CPU *, UINT);
|
||||
void h_gr_set (SIM_CPU *, UINT, SI);
|
||||
|
||||
|
||||
#endif /* SIM_MAIN_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue