* Backed out week-old attempt at enabling quadword memory access on
[deliverable/binutils-gdb.git] / sim / mips / sky-pke.c
index ce5c478a595cb03e4d24397ccbce4134a1a0a6a4..6e318750eaab4a3dd451b946204bef9178341142 100644 (file)
@@ -197,14 +197,16 @@ pke_attach(SIM_DESC sd, struct pke_device* me)
   }
 }
 
+
 /* Read PKE Pseudo-PC into buf in target order */
 int
 read_pke_pc (struct pke_device *me, void *buf)
 {
-  *((int *) buf) = H2T_4( me->fifo_pc );
+  *((int *) buf) = H2T_4( (me->fifo_pc << 2) | me->qw_pc );
   return 4;
 }
 
+
 /* Read PKE reg into buf in target order */
 int
 read_pke_reg (struct pke_device *me, int reg_num, void *buf)
@@ -415,6 +417,8 @@ write_pke_reg (struct pke_device *me, int reg_num, const void *buf)
 
   return 4;
 }
+
+
 /* Handle a PKE write; return no. of bytes written */
 
 int
This page took 0.02344 seconds and 4 git commands to generate.