remove more get_data calls
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 19 Oct 2018 12:19:58 +0000 (13:19 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 19 Oct 2018 12:19:58 +0000 (13:19 +0100)
riscv/interactive.cc
riscv/sv_mmu.h

index 28409637584446cfd9a24df94951981e6af7dff9..afe6d1338ddca19ad8a1dc7a9e55d57f47616ede 100644 (file)
@@ -287,33 +287,17 @@ reg_t sim_t::get_mem(const std::vector<std::string>& args)
   switch(addr % 8)
   {
     case 0:
-      val = mmu->load_uint64(addr)
-#ifdef NOTYET_SPIKE_SIMPLEV
-            .get_data()
-#endif
-        ;
+      val = mmu->load_uint64(addr);
       break;
     case 4:
-      val = mmu->load_uint32(addr)
-#ifdef NOTYET_SPIKE_SIMPLEV
-            .get_data()
-#endif
-        ;
+      val = mmu->load_uint32(addr);
       break;
     case 2:
     case 6:
-      val = mmu->load_uint16(addr)
-#ifdef NOTYET_SPIKE_SIMPLEV
-            .get_data()
-#endif
-        ;
+      val = mmu->load_uint16(addr);
       break;
     default:
-      val = mmu->load_uint8(addr)
-#ifdef NOTYET_SPIKE_SIMPLEV
-            .get_data()
-#endif
-        ;
+      val = mmu->load_uint8(addr);
       break;
   }
   return val;
@@ -332,13 +316,8 @@ void sim_t::interactive_str(const std::string& cmd, const std::vector<std::strin
   reg_t addr = strtol(args[0].c_str(),NULL,16);
 
   char ch;
-#ifdef NOTYET_SPIKE_SIMPLEV
-  while((ch = debug_mmu->load_uint8(addr++).get_data()))
-    putchar(ch);
-#else
   while((ch = debug_mmu->load_uint8(addr++)))
     putchar(ch);
-#endif
 
   putchar('\n');
 }
index 9ef52089304e67c1a968e9bf47d1f76b375bd1e9..d42063c220335978ee767ca3ca138f949a49da56 100644 (file)
@@ -38,9 +38,6 @@ public:
     void store_##type(sv_reg_t addr, type##_t val) { \
       mmu_t::store_##type(addr, val); \
     }
-    //void store_##type(sv_reg_t addr, sv_reg_t val) { 
-    //  mmu_t::store_##type(addr, val); 
-    //}
 
   // store value to memory at aligned address
   sv_store_func(uint8)
@@ -60,22 +57,22 @@ public:
 
   void store_float128(sv_reg_t addr, float128_t val)
   {
-      mmu_t::store_float128(addr /*.get_data()*/, val);
+      mmu_t::store_float128(addr, val);
   }
 
   float128_t load_float128(sv_reg_t addr)
   {
-    return mmu_t::load_float128(addr/*.get_data()*/);
+    return mmu_t::load_float128(addr);
   }
 
    void acquire_load_reservation(sv_reg_t vaddr)
    { 
-     mmu_t::acquire_load_reservation(vaddr/*.get_data()*/);
+     mmu_t::acquire_load_reservation(vaddr);
    }
 
    bool check_load_reservation(sv_reg_t vaddr)
    { 
-     return mmu_t::check_load_reservation(vaddr/*.get_data()*/);
+     return mmu_t::check_load_reservation(vaddr);
    }
 
 };