diff options
author | Gabe Black <gabeblack@google.com> | 2019-10-28 19:27:21 -0700 |
---|---|---|
committer | Gabe Black <gabeblack@google.com> | 2019-10-30 00:42:07 +0000 |
commit | dd3abb296f9df75aa2eabda1d417c613ecc320f6 (patch) | |
tree | 87d346a8f56bc5e6c90415b55c76dfb09b20e14d | |
parent | 1d5119e8911c63dda9fb987ca0f2bb92b666cfa9 (diff) | |
download | gem5-dd3abb296f9df75aa2eabda1d417c613ecc320f6.tar.xz |
dev: Remove SINIC_VTOPHYS and related code.
The code in this #ifdef isn't turned on by anything, and either has or
likely will bitrot, especially since there are no tests to even
determine manually if the code they guard works. They are also
preceeded by panics which say that the code they guard is known not to
work now anyway.
This change also gets rid of TheISA in that file since the only reason
it was around was for vtophys in the guarded code.
Change-Id: I59fd8974d0dd3d7ab0d5a8ccfa6a446d2da41eb0
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/22265
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Jason Lowe-Power <jason@lowepower.com>
Tested-by: kokoro <noreply+kokoro@google.com>
-rw-r--r-- | src/dev/net/sinic.cc | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/dev/net/sinic.cc b/src/dev/net/sinic.cc index c6260078c..f422cf319 100644 --- a/src/dev/net/sinic.cc +++ b/src/dev/net/sinic.cc @@ -34,15 +34,10 @@ #include <limits> #include <string> -#ifdef SINIC_VTOPHYS -#include "arch/vtophys.hh" - -#endif #include "base/compiler.hh" #include "base/debug.hh" #include "base/inet.hh" #include "base/types.hh" -#include "config/the_isa.hh" #include "debug/EthernetAll.hh" #include "dev/net/etherlink.hh" #include "mem/packet.hh" @@ -52,7 +47,6 @@ using namespace std; using namespace Net; -using namespace TheISA; namespace Sinic { @@ -365,15 +359,6 @@ Device::write(PacketPtr pkt) if (Regs::get_RxData_Vaddr(pkt->getLE<uint64_t>())) { panic("vtophys not implemented in newmem"); -#ifdef SINIC_VTOPHYS - Addr vaddr = Regs::get_RxData_Addr(reg64); - Addr paddr = vtophys(req->xc, vaddr); - DPRINTF(EthernetPIO, "write RxData vnic %d (rxunique %d): " - "vaddr=%#x, paddr=%#x\n", - index, vnic.rxUnique, vaddr, paddr); - - vnic.RxData = Regs::set_RxData_Addr(vnic.RxData, paddr); -#endif } else { DPRINTF(EthernetPIO, "write RxData vnic %d (rxunique %d)\n", index, vnic.rxUnique); @@ -403,15 +388,6 @@ Device::write(PacketPtr pkt) if (Regs::get_TxData_Vaddr(pkt->getLE<uint64_t>())) { panic("vtophys won't work here in newmem.\n"); -#ifdef SINIC_VTOPHYS - Addr vaddr = Regs::get_TxData_Addr(reg64); - Addr paddr = vtophys(req->xc, vaddr); - DPRINTF(EthernetPIO, "write TxData vnic %d (txunique %d): " - "vaddr=%#x, paddr=%#x\n", - index, vnic.txUnique, vaddr, paddr); - - vnic.TxData = Regs::set_TxData_Addr(vnic.TxData, paddr); -#endif } else { DPRINTF(EthernetPIO, "write TxData vnic %d (txunique %d)\n", index, vnic.txUnique); |