Deleted Added
sdiff udiff text old ( 13774:a1be2a0c55f2 ) new ( 13839:a32423451596 )
full compact
1# -*- coding: utf-8 -*-
2# Copyright (c) 2017 Jason Lowe-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;

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

83system.mem_ctrl.port = system.membus.master
84
85# Connect the system up to the membus
86system.system_port = system.membus.slave
87
88# Create a process for a simple "Hello World" application
89process = Process()
90# Set the command
91# cmd is a list which begins with the executable (like argv)
92process.cmd = ['tests/test-progs/hello/bin/x86/linux/hello']
93# Set the cpu to use the process as its workload and create thread contexts
94system.cpu.workload = process
95system.cpu.createThreads()
96
97# set up the root SimObject and start the simulation
98root = Root(full_system = False, system = system)
99# instantiate all of the objects we've created above
100m5.instantiate()
101
102print("Beginning simulation!")
103exit_event = m5.simulate()
104print('Exiting @ tick %i because %s' % (m5.curTick(), exit_event.getCause()))