core.cc (11793:ef606668d247) core.cc (11990:5fad911cc326)
1/*
2 * Copyright (c) 2006 The Regents of The University of Michigan
3 * Copyright (c) 2013 Advanced Micro Devices, Inc.
4 * Copyright (c) 2013 Mark D. Hill and David A. Wood
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions are

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

114 */
115void
116registerExitCallback(Callback *callback)
117{
118 exitCallbacks().add(callback);
119}
120
121/**
1/*
2 * Copyright (c) 2006 The Regents of The University of Michigan
3 * Copyright (c) 2013 Advanced Micro Devices, Inc.
4 * Copyright (c) 2013 Mark D. Hill and David A. Wood
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions are

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

114 */
115void
116registerExitCallback(Callback *callback)
117{
118 exitCallbacks().add(callback);
119}
120
121/**
122 * Do C++ simulator exit processing. Exported to SWIG to be invoked
122 * Do C++ simulator exit processing. Exported to Python to be invoked
123 * when simulator terminates via Python's atexit mechanism.
124 */
125void
126doExitCleanup()
127{
128 exitCallbacks().process();
129 exitCallbacks().clear();
130
131 cout.flush();
132}
133
123 * when simulator terminates via Python's atexit mechanism.
124 */
125void
126doExitCleanup()
127{
128 exitCallbacks().process();
129 exitCallbacks().clear();
130
131 cout.flush();
132}
133