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/arch/alpha/freebsd/system.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/arch/alpha/freebsd') diff --git a/src/arch/alpha/freebsd/system.cc b/src/arch/alpha/freebsd/system.cc index ac7a92ed3..6c7da711f 100644 --- a/src/arch/alpha/freebsd/system.cc +++ b/src/arch/alpha/freebsd/system.cc @@ -43,6 +43,7 @@ #include "cpu/thread_context.hh" #include "mem/physical.hh" #include "mem/port.hh" +#include "mem/vport.hh" #include "sim/byteswap.hh" #define TIMER_FREQUENCY 1193180 @@ -77,8 +78,8 @@ FreebsdAlphaSystem::doCalibrateClocks(ThreadContext *tc) ppc_vaddr = (Addr)tc->readIntReg(17); timer_vaddr = (Addr)tc->readIntReg(18); - virtPort.write(ppc_vaddr, (uint32_t)SimClock::Frequency); - virtPort.write(timer_vaddr, (uint32_t)TIMER_FREQUENCY); + virtPort->write(ppc_vaddr, (uint32_t)SimClock::Frequency); + virtPort->write(timer_vaddr, (uint32_t)TIMER_FREQUENCY); } void -- cgit v1.2.3