aboutsummaryrefslogtreecommitdiff
path: root/sim/common/cgen-par.h
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>1999-10-26 03:43:48 +0000
committerJason Molenda <jmolenda@apple.com>1999-10-26 03:43:48 +0000
commite514a9d64262fcceccd85180b20b7adc3c4a5eed (patch)
tree15fda31e24d9ce88756ba5e4d3c6a54711e8648e /sim/common/cgen-par.h
parent4c1102fd195c4ec6aaff893d5d4df4fc5faa0fc1 (diff)
downloadgdb-e514a9d64262fcceccd85180b20b7adc3c4a5eed.zip
gdb-e514a9d64262fcceccd85180b20b7adc3c4a5eed.tar.gz
gdb-e514a9d64262fcceccd85180b20b7adc3c4a5eed.tar.bz2
import gdb-1999-10-25 snapshot
Diffstat (limited to 'sim/common/cgen-par.h')
-rw-r--r--sim/common/cgen-par.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/sim/common/cgen-par.h b/sim/common/cgen-par.h
index c786d1c..9cf5e8c 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);