process.cc (5183:b4decf133fe4) process.cc (5569:baeee670d4ce)
1/*
2 * Copyright (c) 2003-2004 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 22 unchanged lines hidden (view full) ---

31
32#include "arch/alpha/isa_traits.hh"
33#include "arch/alpha/process.hh"
34#include "base/loader/object_file.hh"
35#include "base/misc.hh"
36#include "cpu/thread_context.hh"
37#include "sim/system.hh"
38
1/*
2 * Copyright (c) 2003-2004 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 22 unchanged lines hidden (view full) ---

31
32#include "arch/alpha/isa_traits.hh"
33#include "arch/alpha/process.hh"
34#include "base/loader/object_file.hh"
35#include "base/misc.hh"
36#include "cpu/thread_context.hh"
37#include "sim/system.hh"
38
39
40using namespace AlphaISA;
41using namespace std;
42
39using namespace AlphaISA;
40using namespace std;
41
43AlphaLiveProcess::AlphaLiveProcess(LiveProcessParams * params,
44 ObjectFile *objFile)
42AlphaLiveProcess::AlphaLiveProcess(LiveProcessParams *params,
43 ObjectFile *objFile)
45 : LiveProcess(params, objFile)
46{
47 brk_point = objFile->dataBase() + objFile->dataSize() + objFile->bssSize();
48 brk_point = roundUp(brk_point, VMPageSize);
49
50 // Set up stack. On Alpha, stack goes below text section. This
51 // code should get moved to some architecture-specific spot.
52 stack_base = objFile->textBase() - (409600+4096);

--- 19 unchanged lines hidden (view full) ---

72 //Opperate in user mode
73 threadContexts[0]->setMiscRegNoEffect(IPR_ICM, 0x18);
74 //No super page mapping
75 threadContexts[0]->setMiscRegNoEffect(IPR_MCSR, 0);
76 //Set this to 0 for now, but it should be unique for each process
77 threadContexts[0]->setMiscRegNoEffect(IPR_DTB_ASN, M5_pid << 57);
78}
79
44 : LiveProcess(params, objFile)
45{
46 brk_point = objFile->dataBase() + objFile->dataSize() + objFile->bssSize();
47 brk_point = roundUp(brk_point, VMPageSize);
48
49 // Set up stack. On Alpha, stack goes below text section. This
50 // code should get moved to some architecture-specific spot.
51 stack_base = objFile->textBase() - (409600+4096);

--- 19 unchanged lines hidden (view full) ---

71 //Opperate in user mode
72 threadContexts[0]->setMiscRegNoEffect(IPR_ICM, 0x18);
73 //No super page mapping
74 threadContexts[0]->setMiscRegNoEffect(IPR_MCSR, 0);
75 //Set this to 0 for now, but it should be unique for each process
76 threadContexts[0]->setMiscRegNoEffect(IPR_DTB_ASN, M5_pid << 57);
77}
78
80