process.cc (12431:000549e1f497) process.cc (12432:2480d8b432f5)
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/process_impl.hh"
56#include "sim/syscall_return.hh"
57#include "sim/system.hh"
58
59using namespace std;
60using namespace RiscvISA;
61
62RiscvProcess::RiscvProcess(ProcessParams *params, ObjectFile *objFile) :
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/process_impl.hh"
56#include "sim/syscall_return.hh"
57#include "sim/system.hh"
58
59using namespace std;
60using namespace RiscvISA;
61
62RiscvProcess::RiscvProcess(ProcessParams *params, ObjectFile *objFile) :
63 Process(params, new FuncPageTable(params->name, params->pid), objFile)
63 Process(params, new FuncPageTable(params->name, params->pid,
64 PageBytes),
65 objFile)
64{
65 fatal_if(!params->useArchPT, "Arch page tables not implemented.");
66 const Addr stack_base = 0x7FFFFFFFFFFFFFFFL;
67 const Addr max_stack_size = 8 * 1024 * 1024;
68 const Addr next_thread_stack_base = stack_base - max_stack_size;
69 const Addr brk_point = roundUp(objFile->bssBase() + objFile->bssSize(),
70 PageBytes);
71 const Addr mmap_end = 0x4000000000000000L;

--- 173 unchanged lines hidden ---
66{
67 fatal_if(!params->useArchPT, "Arch page tables not implemented.");
68 const Addr stack_base = 0x7FFFFFFFFFFFFFFFL;
69 const Addr max_stack_size = 8 * 1024 * 1024;
70 const Addr next_thread_stack_base = stack_base - max_stack_size;
71 const Addr brk_point = roundUp(objFile->bssBase() + objFile->bssSize(),
72 PageBytes);
73 const Addr mmap_end = 0x4000000000000000L;

--- 173 unchanged lines hidden ---