sc_process_handle.cc (13128:60311a75e876) sc_process_handle.cc (13254:3133d9760716)
1/*
2 * Copyright 2018 Google, Inc.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are
6 * met: redistributions of source code must retain the above copyright
7 * notice, this list of conditions and the following disclaimer;
8 * redistributions in binary form must reproduce the above copyright

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

65 current->file = file;
66 current->lineno = lineno;
67}
68
69
70sc_process_b *
71sc_get_curr_process_handle()
72{
1/*
2 * Copyright 2018 Google, Inc.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are
6 * met: redistributions of source code must retain the above copyright
7 * notice, this list of conditions and the following disclaimer;
8 * redistributions in binary form must reproduce the above copyright

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

65 current->file = file;
66 current->lineno = lineno;
67}
68
69
70sc_process_b *
71sc_get_curr_process_handle()
72{
73 warn("%s not implemented.\n", __PRETTY_FUNCTION__);
74 return nullptr;
73 return ::sc_gem5::scheduler.current();
75}
76
77
78sc_process_handle::sc_process_handle() : _gem5_process(nullptr) {}
79
80sc_process_handle::sc_process_handle(const sc_process_handle &handle) :
81 _gem5_process(handle._gem5_process)
82{

--- 260 unchanged lines hidden ---
74}
75
76
77sc_process_handle::sc_process_handle() : _gem5_process(nullptr) {}
78
79sc_process_handle::sc_process_handle(const sc_process_handle &handle) :
80 _gem5_process(handle._gem5_process)
81{

--- 260 unchanged lines hidden ---