process.cc (12334:e0ab29a34764) process.cc (12393:116dd3ac3d33)
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

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

56
57using namespace std;
58using namespace RiscvISA;
59
60RiscvProcess::RiscvProcess(ProcessParams * params,
61 ObjectFile *objFile) : Process(params, objFile)
62{
63 const Addr stack_base = 0x7FFFFFFFFFFFFFFFL;
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

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

56
57using namespace std;
58using namespace RiscvISA;
59
60RiscvProcess::RiscvProcess(ProcessParams * params,
61 ObjectFile *objFile) : Process(params, objFile)
62{
63 const Addr stack_base = 0x7FFFFFFFFFFFFFFFL;
64 const Addr max_stack_size = PageBytes * 64;
64 const Addr max_stack_size = 8 * 1024 * 1024;
65 const Addr next_thread_stack_base = stack_base - max_stack_size;
66 const Addr brk_point = roundUp(objFile->bssBase() + objFile->bssSize(),
67 PageBytes);
68 const Addr mmap_end = 0x4000000000000000L;
69 memState = make_shared<MemState>(brk_point, stack_base, max_stack_size,
70 next_thread_stack_base, mmap_end);
71}
72

--- 170 unchanged lines hidden ---
65 const Addr next_thread_stack_base = stack_base - max_stack_size;
66 const Addr brk_point = roundUp(objFile->bssBase() + objFile->bssSize(),
67 PageBytes);
68 const Addr mmap_end = 0x4000000000000000L;
69 memState = make_shared<MemState>(brk_point, stack_base, max_stack_size,
70 next_thread_stack_base, mmap_end);
71}
72

--- 170 unchanged lines hidden ---