remove more get_data calls
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 19 Oct 2018 12:20:59 +0000 (13:20 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 19 Oct 2018 12:20:59 +0000 (13:20 +0100)
dummy_rocc/dummy_rocc.cc
riscv/debug_module.cc

index 7148aa8897d45aae34011373b3cc99ef3d7e0321..85ab7aa6946ed8b6d6813632632602108f5b88e4 100644 (file)
@@ -22,11 +22,7 @@ class dummy_rocc_t : public rocc_t
       case 1: // xd <- acc (the only real work is the return statement below)
         break;
       case 2: // acc[rs2] <- Mem[xs1]
-        acc[insn.rs2] = p->get_mmu()->load_uint64(xs1)
-#ifdef NOT_SPIKE_SIMPLEV
-        .get_data()
-#endif
-;
+        acc[insn.rs2] = p->get_mmu()->load_uint64(xs1);
         break;
       case 3: // acc[rs2] <- accX + xs1
         acc[insn.rs2] += xs1;
index 4cf86693e662e568f9585ab150d7ddf8f0ecbded..96de3c8ab234f59aa23cf079a16a9395f37acee4 100644 (file)
@@ -274,29 +274,13 @@ void debug_module_t::sb_read()
   reg_t address = ((uint64_t) sbaddress[1] << 32) | sbaddress[0];
   try {
     if (sbcs.sbaccess == 0 && max_bus_master_bits >= 8) {
-      sbdata[0] = sim->debug_mmu->load_uint8(address)
-#ifdef NOTYET_SPIKE_SIMPLEV
-        .get_data()
-#endif
-;
+      sbdata[0] = sim->debug_mmu->load_uint8(address);
     } else if (sbcs.sbaccess == 1 && max_bus_master_bits >= 16) {
-      sbdata[0] = sim->debug_mmu->load_uint16(address)
-#ifdef NOTYET_SPIKE_SIMPLEV
-        .get_data()
-#endif
-;
+      sbdata[0] = sim->debug_mmu->load_uint16(address);
     } else if (sbcs.sbaccess == 2 && max_bus_master_bits >= 32) {
-      sbdata[0] = sim->debug_mmu->load_uint32(address)
-#ifdef NOTYET_SPIKE_SIMPLEV
-        .get_data()
-#endif
-;
+      sbdata[0] = sim->debug_mmu->load_uint32(address);
     } else if (sbcs.sbaccess == 3 && max_bus_master_bits >= 64) {
-      uint64_t value = sim->debug_mmu->load_uint64(address)
-#ifdef NOTYET_SPIKE_SIMPLEV
-        .get_data()
-#endif
-;
+      uint64_t value = sim->debug_mmu->load_uint64(address);
       sbdata[0] = value;
       sbdata[1] = value >> 32;
     } else {