From 9c1ab4cd20ef4ad886741286db9134bded281a2f Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Fri, 19 Oct 2018 13:20:59 +0100 Subject: [PATCH] remove more get_data calls --- dummy_rocc/dummy_rocc.cc | 6 +----- riscv/debug_module.cc | 24 ++++-------------------- 2 files changed, 5 insertions(+), 25 deletions(-) diff --git a/dummy_rocc/dummy_rocc.cc b/dummy_rocc/dummy_rocc.cc index 7148aa8..85ab7aa 100644 --- a/dummy_rocc/dummy_rocc.cc +++ b/dummy_rocc/dummy_rocc.cc @@ -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; diff --git a/riscv/debug_module.cc b/riscv/debug_module.cc index 4cf8669..96de3c8 100644 --- a/riscv/debug_module.cc +++ b/riscv/debug_module.cc @@ -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 { -- 2.30.2