summaryrefslogtreecommitdiff
path: root/kern/linux/linux_system.cc
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2006-03-04 03:19:58 -0500
committerGabe Black <gblack@eecs.umich.edu>2006-03-04 03:19:58 -0500
commit1e3b221fe38a09d477f306ac837e9f816bcea029 (patch)
treec093f375a5a0a177e74c2fe92a60f6c5a087602c /kern/linux/linux_system.cc
parent62d149d9be9627593dc3e89505daa20b349ec116 (diff)
parent9ad917858763bb44c8e6e22b7bb370fd50d518df (diff)
downloadgem5-1e3b221fe38a09d477f306ac837e9f816bcea029.tar.xz
Merge gblack@m5.eecs.umich.edu:/bk/multiarch
into ewok.(none):/home/gblack/m5/multiarch --HG-- extra : convert_revision : cb6de8d050ac5abb8f61eb5780deeb06e93b1a0c
Diffstat (limited to 'kern/linux/linux_system.cc')
-rw-r--r--kern/linux/linux_system.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/kern/linux/linux_system.cc b/kern/linux/linux_system.cc
index eb189658c..d7ec8a327 100644
--- a/kern/linux/linux_system.cc
+++ b/kern/linux/linux_system.cc
@@ -35,6 +35,7 @@
* up boot time.
*/
+#include "arch/alpha/system.hh"
#include "base/loader/symtab.hh"
#include "cpu/exec_context.hh"
#include "cpu/base.hh"
@@ -53,7 +54,7 @@ using namespace std;
using namespace TheISA;
LinuxSystem::LinuxSystem(Params *p)
- : System(p)
+ : AlphaSystem(p)
{
Addr addr = 0;
Addr paddr = 0;
@@ -73,7 +74,7 @@ LinuxSystem::LinuxSystem(Params *p)
paddr = vtophys(physmem, CommandLine());
char *commandline = (char *)physmem->dma_addr(paddr, sizeof(uint64_t));
if (commandline)
- strncpy(commandline, params->boot_osflags.c_str(), CommandLineSize);
+ strncpy(commandline, params()->boot_osflags.c_str(), CommandLineSize);
/**
* find the address of the est_cycle_freq variable and insert it
@@ -146,7 +147,7 @@ LinuxSystem::LinuxSystem(Params *p)
printThreadEvent = NULL;
}
- if (params->bin_int) {
+ if (params()->bin_int) {
intStartEvent = addPalFuncEvent<InterruptStartEvent>("sys_int_21");
if (!intStartEvent)
panic("could not find symbol: sys_int_21\n");
@@ -277,7 +278,7 @@ END_INIT_SIM_OBJECT_PARAMS(LinuxSystem)
CREATE_SIM_OBJECT(LinuxSystem)
{
- System::Params *p = new System::Params;
+ AlphaSystem::Params *p = new AlphaSystem::Params;
p->name = getInstanceName();
p->boot_cpu_frequency = boot_cpu_frequency;
p->memctrl = memctrl;