fs_bigLITTLE.py (11843:9323db591b22) | fs_bigLITTLE.py (11935:28290ed77b03) |
---|---|
1# Copyright (c) 2016 ARM Limited | 1# Copyright (c) 2016-2017 ARM Limited |
2# All rights reserved. 3# 4# The license below extends only to copyright in the software and shall 5# not be construed as granting a license to any other intellectual 6# property including but not limited to intellectual property relating 7# to a hardware implementation of the functionality of the software 8# licensed hereunder. You may use the software subject to the license 9# terms below provided that you ensure that this notice is replicated --- 194 unchanged lines hidden (view full) --- 204 m5.util.panic("Little CPU model requires caches") 205 206 # Linux device tree 207 system.dtb_filename = SysPaths.binary(options.dtb) 208 209 return root 210 211 | 2# All rights reserved. 3# 4# The license below extends only to copyright in the software and shall 5# not be construed as granting a license to any other intellectual 6# property including but not limited to intellectual property relating 7# to a hardware implementation of the functionality of the software 8# licensed hereunder. You may use the software subject to the license 9# terms below provided that you ensure that this notice is replicated --- 194 unchanged lines hidden (view full) --- 204 m5.util.panic("Little CPU model requires caches") 205 206 # Linux device tree 207 system.dtb_filename = SysPaths.binary(options.dtb) 208 209 return root 210 211 |
212def instantiate(checkpoint_path=None): | 212def instantiate(options, checkpoint_dir=None): |
213 # Get and load from the chkpt or simpoint checkpoint | 213 # Get and load from the chkpt or simpoint checkpoint |
214 if checkpoint_path is not None: 215 m5.util.inform("Restoring from checkpoint %s", checkpoint_path) 216 m5.instantiate(checkpoint_path) | 214 if options.restore_from: 215 if checkpoint_dir and not os.path.isabs(options.restore_from): 216 cpt = os.path.join(checkpoint_dir, options.restore_from) 217 else: 218 cpt = options.restore_from 219 220 m5.util.inform("Restoring from checkpoint %s", cpt) 221 m5.instantiate(cpt) |
217 else: 218 m5.instantiate() 219 220 221def run(checkpoint_dir=m5.options.outdir): 222 # start simulation (and drop checkpoints when requested) 223 while True: 224 event = m5.simulate() --- 11 unchanged lines hidden (view full) --- 236 237 238def main(): 239 parser = argparse.ArgumentParser( 240 description="Generic ARM big.LITTLE configuration") 241 addOptions(parser) 242 options = parser.parse_args() 243 root = build(options) | 222 else: 223 m5.instantiate() 224 225 226def run(checkpoint_dir=m5.options.outdir): 227 # start simulation (and drop checkpoints when requested) 228 while True: 229 event = m5.simulate() --- 11 unchanged lines hidden (view full) --- 241 242 243def main(): 244 parser = argparse.ArgumentParser( 245 description="Generic ARM big.LITTLE configuration") 246 addOptions(parser) 247 options = parser.parse_args() 248 root = build(options) |
244 instantiate(options.restore_from) | 249 instantiate(options) |
245 run() 246 247 248if __name__ == "__m5_main__": 249 main() | 250 run() 251 252 253if __name__ == "__m5_main__": 254 main() |