process.cc (4434:2ea7b6e0b78f) process.cc (4648:173a212f5091)
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;

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

34#include "arch/sparc/isa_traits.hh"
35#include "arch/sparc/process.hh"
36#include "arch/sparc/types.hh"
37#include "base/loader/object_file.hh"
38#include "base/loader/elf_object.hh"
39#include "base/misc.hh"
40#include "cpu/thread_context.hh"
41#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;

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

34#include "arch/sparc/isa_traits.hh"
35#include "arch/sparc/process.hh"
36#include "arch/sparc/types.hh"
37#include "base/loader/object_file.hh"
38#include "base/loader/elf_object.hh"
39#include "base/misc.hh"
40#include "cpu/thread_context.hh"
41#include "mem/page_table.hh"
42#include "sim/process_impl.hh"
43#include "mem/translating_port.hh"
44#include "sim/system.hh"
45
46using namespace std;
47using namespace SparcISA;
48
49
50SparcLiveProcess::SparcLiveProcess(const std::string &nm, ObjectFile *objFile,

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

83
84void
85Sparc32LiveProcess::startup()
86{
87 argsInit(32 / 8, VMPageSize);
88
89 //From the SPARC ABI
90
42#include "mem/translating_port.hh"
43#include "sim/system.hh"
44
45using namespace std;
46using namespace SparcISA;
47
48
49SparcLiveProcess::SparcLiveProcess(const std::string &nm, ObjectFile *objFile,

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

82
83void
84Sparc32LiveProcess::startup()
85{
86 argsInit(32 / 8, VMPageSize);
87
88 //From the SPARC ABI
89
91 //The process runs in user mode
92 threadContexts[0]->setMiscReg(MISCREG_PSTATE, 0x02);
90 //The process runs in user mode with 32 bit addresses
91 threadContexts[0]->setMiscReg(MISCREG_PSTATE, 0x0a);
93
94 //Setup default FP state
95 threadContexts[0]->setMiscRegNoEffect(MISCREG_FSR, 0);
96
97 threadContexts[0]->setMiscRegNoEffect(MISCREG_TICK, 0);
98 //
99 /*
100 * Register window management registers

--- 543 unchanged lines hidden ---
92
93 //Setup default FP state
94 threadContexts[0]->setMiscRegNoEffect(MISCREG_FSR, 0);
95
96 threadContexts[0]->setMiscRegNoEffect(MISCREG_TICK, 0);
97 //
98 /*
99 * Register window management registers

--- 543 unchanged lines hidden ---