* vax-nat.c: New file.
[deliverable/binutils-gdb.git] / sim / common / cgen-par.c
index baf9f586464b4fdc9bf9eaa0163b0721d60fd770..a47d26cb53858ef6d8564e74a433c177323f2736 100644 (file)
@@ -1,5 +1,5 @@
 /* Simulator parallel routines for CGEN simulators (and maybe others).
-   Copyright (C) 1999 Free Software Foundation, Inc.
+   Copyright (C) 1999, 2000 Free Software Foundation, Inc.
    Contributed by Cygnus Solutions.
 
 This file is part of the GNU instruction set simulator.
@@ -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,
This page took 0.024123 seconds and 4 git commands to generate.