mem: Remove the version of the FS translating port proxy with no tc.

This version is not used and is the only remaining consumer of the
vtophys variant with no ThreadContext.

Change-Id: I8cb870b841fe064cee121e4930cb163d2ec7628f
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/26223
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Maintainer: Gabe Black <gabeblack@google.com>
Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
Gabe Black
2020-03-02 16:46:12 -08:00
parent b06142ec5f
commit 7b48b38a92
2 changed files with 3 additions and 33 deletions

View File

@@ -57,29 +57,13 @@ FSTranslatingPortProxy::FSTranslatingPortProxy(ThreadContext *tc)
{
}
FSTranslatingPortProxy::FSTranslatingPortProxy(
SendFunctionalFunc func, unsigned int cacheLineSize)
: PortProxy(func, cacheLineSize), _tc(NULL)
{
}
FSTranslatingPortProxy::FSTranslatingPortProxy(
MasterPort &port, unsigned int cacheLineSize)
: PortProxy(port, cacheLineSize), _tc(NULL)
{
}
bool
FSTranslatingPortProxy::tryReadBlob(Addr addr, void *p, int size) const
{
Addr paddr;
for (ChunkGenerator gen(addr, size, TheISA::PageBytes); !gen.done();
gen.next())
{
if (_tc)
paddr = TheISA::vtophys(_tc,gen.addr());
else
paddr = TheISA::vtophys(gen.addr());
Addr paddr = TheISA::vtophys(_tc, gen.addr());
PortProxy::readBlobPhys(paddr, 0, p, gen.size());
p = static_cast<uint8_t *>(p) + gen.size();
@@ -91,14 +75,10 @@ bool
FSTranslatingPortProxy::tryWriteBlob(
Addr addr, const void *p, int size) const
{
Addr paddr;
for (ChunkGenerator gen(addr, size, TheISA::PageBytes); !gen.done();
gen.next())
{
if (_tc)
paddr = TheISA::vtophys(_tc,gen.addr());
else
paddr = TheISA::vtophys(gen.addr());
Addr paddr = TheISA::vtophys(_tc, gen.addr());
PortProxy::writeBlobPhys(paddr, 0, p, gen.size());
p = static_cast<const uint8_t *>(p) + gen.size();
@@ -109,14 +89,10 @@ FSTranslatingPortProxy::tryWriteBlob(
bool
FSTranslatingPortProxy::tryMemsetBlob(Addr address, uint8_t v, int size) const
{
Addr paddr;
for (ChunkGenerator gen(address, size, TheISA::PageBytes); !gen.done();
gen.next())
{
if (_tc)
paddr = TheISA::vtophys(_tc,gen.addr());
else
paddr = TheISA::vtophys(gen.addr());
Addr paddr = TheISA::vtophys(_tc, gen.addr());
PortProxy::memsetBlobPhys(paddr, 0, v, gen.size());
}

View File

@@ -75,12 +75,6 @@ class FSTranslatingPortProxy : public PortProxy
public:
FSTranslatingPortProxy(ThreadContext* tc);
FSTranslatingPortProxy(SendFunctionalFunc func,
unsigned int cacheLineSize);
FSTranslatingPortProxy(MasterPort &port,
unsigned int cacheLineSize);
~FSTranslatingPortProxy() {}
/** Version of tryReadblob that translates virt->phys and deals