diff options
author | Frank Ch. Eigler <fche@redhat.com> | 2000-03-08 21:09:41 +0000 |
---|---|---|
committer | Frank Ch. Eigler <fche@redhat.com> | 2000-03-08 21:09:41 +0000 |
commit | e88acae7927b1144822572406f0ba9540e41e341 (patch) | |
tree | abe7a5e5076a6490758815b8f6ec0f2789b756fb /sim/common/cgen-par.c | |
parent | c1b7949f6edaec243c82466c4ed128c5ecf34918 (diff) | |
download | gdb-e88acae7927b1144822572406f0ba9540e41e341.zip gdb-e88acae7927b1144822572406f0ba9540e41e341.tar.gz gdb-e88acae7927b1144822572406f0ba9540e41e341.tar.bz2 |
* extension
2000-03-08 Dave Brolley <brolley@redhat.com>
* cgen-par.h (cgen_write_queue_kind): Add CGEN_FN_SF_WRITE.
(CGEN_WRITE_QUEUE_ELEMENT): Add fn_sf_write.
(sim_queue_fn_si_write): Last argument is has type USI.
(sim_queue_fn_sf_write): New function.
* cgen-par.c (sim_queue_fn_si_write): Declare 'value' as USI.
(sim_queue_fn_sf_write): New function.
(cgen_write_queue_element_execute): Handle CGEN_FN_SF_WRITE.
Diffstat (limited to 'sim/common/cgen-par.c')
-rw-r--r-- | sim/common/cgen-par.c | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/sim/common/cgen-par.c b/sim/common/cgen-par.c index baf9f58..0becdcf 100644 --- a/sim/common/cgen-par.c +++ b/sim/common/cgen-par.c @@ -93,7 +93,7 @@ void sim_queue_fn_si_write ( SIM_CPU *cpu, void (*write_function)(SIM_CPU *cpu, UINT, USI), UINT regno, - SI value + USI value ) { CGEN_WRITE_QUEUE *q = CPU_WRITE_QUEUE (cpu); @@ -105,6 +105,22 @@ void sim_queue_fn_si_write ( element->kinds.fn_si_write.value = value; } +void sim_queue_fn_sf_write ( + SIM_CPU *cpu, + void (*write_function)(SIM_CPU *cpu, UINT, SF), + UINT regno, + SF value +) +{ + CGEN_WRITE_QUEUE *q = CPU_WRITE_QUEUE (cpu); + CGEN_WRITE_QUEUE_ELEMENT *element = CGEN_WRITE_QUEUE_NEXT (q); + element->kind = CGEN_FN_SF_WRITE; + element->insn_address = CPU_PC_GET (cpu); + element->kinds.fn_sf_write.function = write_function; + element->kinds.fn_sf_write.regno = regno; + element->kinds.fn_sf_write.value = value; +} + void sim_queue_fn_di_write ( SIM_CPU *cpu, void (*write_function)(SIM_CPU *cpu, UINT, DI), @@ -364,6 +380,11 @@ cgen_write_queue_element_execute (SIM_CPU *cpu, CGEN_WRITE_QUEUE_ELEMENT *item) item->kinds.fn_si_write.regno, item->kinds.fn_si_write.value); break; + case CGEN_FN_SF_WRITE: + item->kinds.fn_sf_write.function (cpu, + item->kinds.fn_sf_write.regno, + item->kinds.fn_sf_write.value); + break; case CGEN_FN_DI_WRITE: item->kinds.fn_di_write.function (cpu, item->kinds.fn_di_write.regno, |