Deleted Added
sdiff udiff text old ( 11851:824055fe6b30 ) new ( 12564:2778478ca882 )
full compact
1# -*- coding: utf-8 -*-
2# Copyright (c) 2015 Jason Power
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;

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

32See Part 1, Chapter 2: Creating a simple configuration script in the
33learning_gem5 book for more information about this script.
34
35IMPORTANT: If you modify this file, it's likely that the Learning gem5 book
36 also needs to be updated. For now, email Jason <power.jg@gmail.com>
37
38"""
39
40# import the m5 (gem5) library created when gem5 is built
41import m5
42# import all of the SimObjects
43from m5.objects import *
44
45# create the system we are going to simulate
46system = System()
47

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

97system.cpu.workload = process
98system.cpu.createThreads()
99
100# set up the root SimObject and start the simulation
101root = Root(full_system = False, system = system)
102# instantiate all of the objects we've created above
103m5.instantiate()
104
105print "Beginning simulation!"
106exit_event = m5.simulate()
107print 'Exiting @ tick %i because %s' % (m5.curTick(), exit_event.getCause())