From 0ea794bcf453093f83c21a56333d78ba1b8dae33 Mon Sep 17 00:00:00 2001 From: Ali Saidi Date: Mon, 8 Nov 2010 13:58:22 -0600 Subject: sim: Use forward declarations for ports. Virtual ports need TLB data which means anything touching a file in the arch directory rebuilds any file that includes system.hh which in everything. --- src/dev/simple_disk.cc | 2 +- src/dev/sparc/iob.cc | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'src/dev') diff --git a/src/dev/simple_disk.cc b/src/dev/simple_disk.cc index b8096d213..eb603c6c7 100644 --- a/src/dev/simple_disk.cc +++ b/src/dev/simple_disk.cc @@ -68,7 +68,7 @@ SimpleDisk::read(Addr addr, baddr_t block, int count) const for (int i = 0, j = 0; i < count; i += SectorSize, j++) image->read(data + i, block + j); - system->functionalPort.writeBlob(addr, data, count); + system->functionalPort->writeBlob(addr, data, count); DPRINTF(SimpleDisk, "read block=%#x len=%d\n", (uint64_t)block, count); DDUMP(SimpleDiskData, data, count); diff --git a/src/dev/sparc/iob.cc b/src/dev/sparc/iob.cc index 40f856d8a..0b03aceb6 100644 --- a/src/dev/sparc/iob.cc +++ b/src/dev/sparc/iob.cc @@ -39,6 +39,7 @@ #include "arch/sparc/isa_traits.hh" #include "arch/sparc/faults.hh" +#include "base/bitfield.hh" #include "base/trace.hh" #include "cpu/intr_control.hh" #include "dev/sparc/iob.hh" -- cgit v1.2.3