2001-02-08 Ben Elliston <bje@redhat.com>
authorChris Demetriou <cgd@google.com>
Thu, 8 Feb 2001 05:22:04 +0000 (05:22 +0000)
committerChris Demetriou <cgd@google.com>
Thu, 8 Feb 2001 05:22:04 +0000 (05:22 +0000)
        * sim-main.c (load_memory): Pass cia to sim_core_read* functions.
        (store_memory): Likewise, pass cia to sim_core_write*.

sim/mips/ChangeLog
sim/mips/sim-main.c

index 5273dbf40f91aee4dea50fb3b53081a768b59b95..8a3e458f20adf13115d945346d9969d4fe223ca8 100644 (file)
@@ -1,3 +1,8 @@
+2001-02-08  Ben Elliston  <bje@redhat.com>
+
+       * sim-main.c (load_memory): Pass cia to sim_core_read* functions.
+       (store_memory): Likewise, pass cia to sim_core_write*.
+
 2000-10-19  Frank Ch. Eigler  <fche@redhat.com>
 
        On advice from Chris G. Demetriou <cgd@sibyte.com>:
index 48a37ae8ec43d6f988ebf7384f3443f4b00e3b87..7b3e6c61501b486b5fe84c1a687a9953ea92f4a7 100644 (file)
@@ -165,42 +165,34 @@ load_memory (SIM_DESC SD,
     {
     case AccessLength_QUADWORD :
       {
-       unsigned_16 val = sim_core_read_aligned_16 (CPU, NULL_CIA, read_map, pAddr);
+       unsigned_16 val = sim_core_read_aligned_16 (CPU, cia, read_map, pAddr);
        value1 = VH8_16 (val);
        value = VL8_16 (val);
        break;
       }
     case AccessLength_DOUBLEWORD :
-      value = sim_core_read_aligned_8 (CPU, NULL_CIA,
-                                      read_map, pAddr);
+      value = sim_core_read_aligned_8 (CPU, cia, read_map, pAddr);
       break;
     case AccessLength_SEPTIBYTE :
-      value = sim_core_read_misaligned_7 (CPU, NULL_CIA,
-                                         read_map, pAddr);
+      value = sim_core_read_misaligned_7 (CPU, cia, read_map, pAddr);
       break;
     case AccessLength_SEXTIBYTE :
-      value = sim_core_read_misaligned_6 (CPU, NULL_CIA,
-                                         read_map, pAddr);
+      value = sim_core_read_misaligned_6 (CPU, cia, read_map, pAddr);
       break;
     case AccessLength_QUINTIBYTE :
-      value = sim_core_read_misaligned_5 (CPU, NULL_CIA,
-                                         read_map, pAddr);
+      value = sim_core_read_misaligned_5 (CPU, cia, read_map, pAddr);
       break;
     case AccessLength_WORD :
-      value = sim_core_read_aligned_4 (CPU, NULL_CIA,
-                                      read_map, pAddr);
+      value = sim_core_read_aligned_4 (CPU, cia, read_map, pAddr);
       break;
     case AccessLength_TRIPLEBYTE :
-      value = sim_core_read_misaligned_3 (CPU, NULL_CIA,
-                                         read_map, pAddr);
+      value = sim_core_read_misaligned_3 (CPU, cia, read_map, pAddr);
       break;
     case AccessLength_HALFWORD :
-      value = sim_core_read_aligned_2 (CPU, NULL_CIA,
-                                      read_map, pAddr);
+      value = sim_core_read_aligned_2 (CPU, cia, read_map, pAddr);
       break;
     case AccessLength_BYTE :
-      value = sim_core_read_aligned_1 (CPU, NULL_CIA,
-                                      read_map, pAddr);
+      value = sim_core_read_aligned_1 (CPU, cia, read_map, pAddr);
       break;
     default:
       abort ();
@@ -303,40 +295,32 @@ store_memory (SIM_DESC SD,
     case AccessLength_QUADWORD :
       {
        unsigned_16 val = U16_8 (MemElem1, MemElem);
-       sim_core_write_aligned_16 (CPU, NULL_CIA, write_map, pAddr, val);
+       sim_core_write_aligned_16 (CPU, cia, write_map, pAddr, val);
        break;
       }
     case AccessLength_DOUBLEWORD :
-      sim_core_write_aligned_8 (CPU, NULL_CIA,
-                               write_map, pAddr, MemElem);
+      sim_core_write_aligned_8 (CPU, cia, write_map, pAddr, MemElem);
       break;
     case AccessLength_SEPTIBYTE :
-      sim_core_write_misaligned_7 (CPU, NULL_CIA,
-                                  write_map, pAddr, MemElem);
+      sim_core_write_misaligned_7 (CPU, cia, write_map, pAddr, MemElem);
       break;
     case AccessLength_SEXTIBYTE :
-      sim_core_write_misaligned_6 (CPU, NULL_CIA,
-                                  write_map, pAddr, MemElem);
+      sim_core_write_misaligned_6 (CPU, cia, write_map, pAddr, MemElem);
       break;
     case AccessLength_QUINTIBYTE :
-      sim_core_write_misaligned_5 (CPU, NULL_CIA,
-                                  write_map, pAddr, MemElem);
+      sim_core_write_misaligned_5 (CPU, cia, write_map, pAddr, MemElem);
       break;
     case AccessLength_WORD :
-      sim_core_write_aligned_4 (CPU, NULL_CIA,
-                               write_map, pAddr, MemElem);
+      sim_core_write_aligned_4 (CPU, cia, write_map, pAddr, MemElem);
       break;
     case AccessLength_TRIPLEBYTE :
-      sim_core_write_misaligned_3 (CPU, NULL_CIA,
-                                  write_map, pAddr, MemElem);
+      sim_core_write_misaligned_3 (CPU, cia, write_map, pAddr, MemElem);
       break;
     case AccessLength_HALFWORD :
-      sim_core_write_aligned_2 (CPU, NULL_CIA,
-                               write_map, pAddr, MemElem);
+      sim_core_write_aligned_2 (CPU, cia, write_map, pAddr, MemElem);
       break;
     case AccessLength_BYTE :
-      sim_core_write_aligned_1 (CPU, NULL_CIA,
-                               write_map, pAddr, MemElem);
+      sim_core_write_aligned_1 (CPU, cia, write_map, pAddr, MemElem);
       break;
     default:
       abort ();