process.cc (12334:e0ab29a34764) process.cc (12431:000549e1f497)
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;

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

37#include "arch/sparc/registers.hh"
38#include "arch/sparc/types.hh"
39#include "base/loader/elf_object.hh"
40#include "base/loader/object_file.hh"
41#include "base/logging.hh"
42#include "cpu/thread_context.hh"
43#include "debug/Stack.hh"
44#include "mem/page_table.hh"
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;

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

37#include "arch/sparc/registers.hh"
38#include "arch/sparc/types.hh"
39#include "base/loader/elf_object.hh"
40#include "base/loader/object_file.hh"
41#include "base/logging.hh"
42#include "cpu/thread_context.hh"
43#include "debug/Stack.hh"
44#include "mem/page_table.hh"
45#include "params/Process.hh"
45#include "sim/aux_vector.hh"
46#include "sim/process_impl.hh"
47#include "sim/syscall_return.hh"
48#include "sim/system.hh"
49
50using namespace std;
51using namespace SparcISA;
52
53static const int FirstArgumentReg = 8;
54
55
46#include "sim/aux_vector.hh"
47#include "sim/process_impl.hh"
48#include "sim/syscall_return.hh"
49#include "sim/system.hh"
50
51using namespace std;
52using namespace SparcISA;
53
54static const int FirstArgumentReg = 8;
55
56
56SparcProcess::SparcProcess(ProcessParams * params, ObjectFile *objFile,
57SparcProcess::SparcProcess(ProcessParams *params, ObjectFile *objFile,
57 Addr _StackBias)
58 Addr _StackBias)
58 : Process(params, objFile), StackBias(_StackBias)
59 : Process(params, new FuncPageTable(params->name, params->pid), objFile),
60 StackBias(_StackBias)
59{
61{
62 fatal_if(!params->useArchPT, "Arch page tables not implemented.");
60 // Initialize these to 0s
61 fillStart = 0;
62 spillStart = 0;
63}
64
65void
66SparcProcess::handleTrap(int trapNum, ThreadContext *tc, Fault *fault)
67{

--- 491 unchanged lines hidden ---
63 // Initialize these to 0s
64 fillStart = 0;
65 spillStart = 0;
66}
67
68void
69SparcProcess::handleTrap(int trapNum, ThreadContext *tc, Fault *fault)
70{

--- 491 unchanged lines hidden ---