diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2011-10-30 18:39:38 -0700 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2011-10-30 18:39:38 -0700 |
commit | 248033f31ea7198ab1339631cc198bb13935c2e8 (patch) | |
tree | b7ee90ef322e3f65351eb1c39518553b4691e750 /src/arch/mips/linux/system.cc | |
parent | 8009b53c41b4b8643bc335ce293c6ba305b70608 (diff) | |
download | gem5-248033f31ea7198ab1339631cc198bb13935c2e8.tar.xz |
SE/FS: Get rid of FULL_SYSTEM in MIPS.
Diffstat (limited to 'src/arch/mips/linux/system.cc')
-rw-r--r-- | src/arch/mips/linux/system.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/arch/mips/linux/system.cc b/src/arch/mips/linux/system.cc index f82ad8d24..30e0f95e9 100644 --- a/src/arch/mips/linux/system.cc +++ b/src/arch/mips/linux/system.cc @@ -47,6 +47,7 @@ #include "base/loader/symtab.hh" #include "cpu/base.hh" #include "cpu/thread_context.hh" +#include "debug/Thread.hh" #include "dev/platform.hh" #include "kern/linux/events.hh" #include "kern/linux/printk.hh" @@ -76,7 +77,7 @@ LinuxMipsSystem::LinuxMipsSystem(Params *p) * Since we aren't using a bootloader, we have to copy the * kernel arguments directly into the kernel's memory. */ - virtPort.writeBlob(CommandLine(), (uint8_t*)params()->boot_osflags.c_str(), + virtPort->writeBlob(CommandLine(), (uint8_t*)params()->boot_osflags.c_str(), params()->boot_osflags.length()+1); /** @@ -85,7 +86,7 @@ LinuxMipsSystem::LinuxMipsSystem(Params *p) * calculated it by using the PIT, RTC, etc. */ if (kernelSymtab->findAddress("est_cycle_freq", addr)) - virtPort.write(addr, (uint64_t)(SimClock::Frequency / + virtPort->write(addr, (uint64_t)(SimClock::Frequency / p->boot_cpu_frequency)); /** @@ -95,7 +96,7 @@ LinuxMipsSystem::LinuxMipsSystem(Params *p) * 255 ASNs. */ if (kernelSymtab->findAddress("dp264_mv", addr)) - virtPort.write(addr + 0x18, LittleEndianGuest::htog((uint32_t)127)); + virtPort->write(addr + 0x18, LittleEndianGuest::htog((uint32_t)127)); else panic("could not find dp264_mv\n"); |