diff options
Diffstat (limited to 'sim/common/cgen-par.h')
-rw-r--r-- | sim/common/cgen-par.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sim/common/cgen-par.h b/sim/common/cgen-par.h index c786d1c4896..9cf5e8c49e1 100644 --- a/sim/common/cgen-par.h +++ b/sim/common/cgen-par.h @@ -26,6 +26,7 @@ enum cgen_write_queue_kind { CGEN_BI_WRITE, CGEN_QI_WRITE, CGEN_SI_WRITE, CGEN_SF_WRITE, CGEN_PC_WRITE, CGEN_FN_HI_WRITE, CGEN_FN_SI_WRITE, CGEN_FN_DI_WRITE, CGEN_FN_DF_WRITE, + CGEN_FN_PC_WRITE, CGEN_MEM_QI_WRITE, CGEN_MEM_HI_WRITE, CGEN_MEM_SI_WRITE, CGEN_MEM_DI_WRITE, CGEN_MEM_DF_WRITE, CGEN_NUM_WRITE_KINDS @@ -34,6 +35,7 @@ enum cgen_write_queue_kind { /* Element of the write queue. */ typedef struct { enum cgen_write_queue_kind kind; /* Used to select union member below. */ + IADDR insn_address; /* Address of the insn performing the write. */ union { struct { BI *target; @@ -75,6 +77,10 @@ typedef struct { void (*function)(SIM_CPU *, UINT, DI); } fn_df_write; struct { + USI value; + void (*function)(SIM_CPU *, USI); + } fn_pc_write; + struct { SI address; QI value; } mem_qi_write; @@ -98,6 +104,7 @@ typedef struct { } CGEN_WRITE_QUEUE_ELEMENT; #define CGEN_WRITE_QUEUE_ELEMENT_KIND(element) ((element)->kind) +#define CGEN_WRITE_QUEUE_ELEMENT_IADDR(element) ((element)->insn_address) extern void cgen_write_queue_element_execute ( SIM_CPU *, CGEN_WRITE_QUEUE_ELEMENT * @@ -136,6 +143,7 @@ extern void sim_queue_fn_hi_write (SIM_CPU *, void (*)(SIM_CPU *, UINT, UHI), UI extern void sim_queue_fn_si_write (SIM_CPU *, void (*)(SIM_CPU *, UINT, USI), UINT, SI); extern void sim_queue_fn_di_write (SIM_CPU *, void (*)(SIM_CPU *, UINT, DI), UINT, DI); extern void sim_queue_fn_df_write (SIM_CPU *, void (*)(SIM_CPU *, UINT, DI), UINT, DF); +extern void sim_queue_fn_pc_write (SIM_CPU *, void (*)(SIM_CPU *, USI), USI); extern void sim_queue_mem_qi_write (SIM_CPU *, SI, QI); extern void sim_queue_mem_hi_write (SIM_CPU *, SI, HI); |