process.cc (11964:0b67d2ce9801) process.cc (11970:98a9b0f154f6)
1/*
2 * Copyright (c) 2004-2005 The Regents of The University of Michigan
3 * Copyright (c) 2016 The University of Virginia
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are
8 * met: redistributions of source code must retain the above copyright

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

55#include "sim/system.hh"
56
57using namespace std;
58using namespace RiscvISA;
59
60RiscvProcess::RiscvProcess(ProcessParams * params,
61 ObjectFile *objFile) : Process(params, objFile)
62{
1/*
2 * Copyright (c) 2004-2005 The Regents of The University of Michigan
3 * Copyright (c) 2016 The University of Virginia
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are
8 * met: redistributions of source code must retain the above copyright

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

55#include "sim/system.hh"
56
57using namespace std;
58using namespace RiscvISA;
59
60RiscvProcess::RiscvProcess(ProcessParams * params,
61 ObjectFile *objFile) : Process(params, objFile)
62{
63 const Addr mem_base = 0x80000000;
64 const Addr stack_base = mem_base;
63 const Addr stack_base = 0x7FFFFFFFFFFFFFFFL;
65 const Addr max_stack_size = PageBytes * 64;
66 const Addr next_thread_stack_base = stack_base - max_stack_size;
67 const Addr brk_point = roundUp(objFile->bssBase() + objFile->bssSize(),
68 PageBytes);
64 const Addr max_stack_size = PageBytes * 64;
65 const Addr next_thread_stack_base = stack_base - max_stack_size;
66 const Addr brk_point = roundUp(objFile->bssBase() + objFile->bssSize(),
67 PageBytes);
69 const Addr mmap_end = mem_base;
68 const Addr mmap_end = 0x4000000000000000L;
70 memState = make_shared<MemState>(brk_point, stack_base, max_stack_size,
71 next_thread_stack_base, mmap_end);
72}
73
74void
75RiscvProcess::initState()
76{
77 Process::initState();

--- 155 unchanged lines hidden ---
69 memState = make_shared<MemState>(brk_point, stack_base, max_stack_size,
70 next_thread_stack_base, mmap_end);
71}
72
73void
74RiscvProcess::initState()
75{
76 Process::initState();

--- 155 unchanged lines hidden ---