simulate.py (8234:a08c5fb4cd89) simulate.py (8245:a9d06c894afe)
1# Copyright (c) 2005 The Regents of The University of Michigan
2# Copyright (c) 2010 Advanced Micro Devices, Inc.
3# All rights reserved.
4#
5# Redistribution and use in source and binary forms, with or without
6# modification, are permitted provided that the following conditions are
7# met: redistributions of source code must retain the above copyright
8# notice, this list of conditions and the following disclaimer;

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

42from util import fatal
43
44# define a MaxTick parameter
45MaxTick = 2**63 - 1
46
47# The final hook to generate .ini files. Called from the user script
48# once the config is built.
49def instantiate(ckpt_dir=None):
1# Copyright (c) 2005 The Regents of The University of Michigan
2# Copyright (c) 2010 Advanced Micro Devices, Inc.
3# All rights reserved.
4#
5# Redistribution and use in source and binary forms, with or without
6# modification, are permitted provided that the following conditions are
7# met: redistributions of source code must retain the above copyright
8# notice, this list of conditions and the following disclaimer;

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

42from util import fatal
43
44# define a MaxTick parameter
45MaxTick = 2**63 - 1
46
47# The final hook to generate .ini files. Called from the user script
48# once the config is built.
49def instantiate(ckpt_dir=None):
50 from main import options
50 from m5 import options
51
52 root = objects.Root.getInstance()
53
54 if not root:
55 fatal("Need to instantiate Root() before calling instantiate()")
56
57 # we need to fix the global frequency
58 ticks.fixGlobalFrequency()

--- 158 unchanged lines hidden ---
51
52 root = objects.Root.getInstance()
53
54 if not root:
55 fatal("Need to instantiate Root() before calling instantiate()")
56
57 # we need to fix the global frequency
58 ticks.fixGlobalFrequency()

--- 158 unchanged lines hidden ---