FileSystemConfig.py (13883:f44e21d3aaa7) FileSystemConfig.py (13885:d10ea5e56cb0)
1# Copyright (c) 2015 Advanced Micro Devices, Inc.
2# All rights reserved
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions are
6# met: redistributions of source code must retain the above copyright
7# notice, this list of conditions and the following disclaimer;
8# redistributions in binary form must reproduce the above copyright

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

56 fsdir = joinpath(m5.options.outdir, 'fs')
57 replace_tree(fsdir)
58
59 # Set up /proc
60 procdir = joinpath(fsdir, 'proc')
61 mkdir(procdir)
62
63 for i in xrange(options.num_cpus):
1# Copyright (c) 2015 Advanced Micro Devices, Inc.
2# All rights reserved
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions are
6# met: redistributions of source code must retain the above copyright
7# notice, this list of conditions and the following disclaimer;
8# redistributions in binary form must reproduce the above copyright

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

56 fsdir = joinpath(m5.options.outdir, 'fs')
57 replace_tree(fsdir)
58
59 # Set up /proc
60 procdir = joinpath(fsdir, 'proc')
61 mkdir(procdir)
62
63 for i in xrange(options.num_cpus):
64 one_cpu = 'processor : 0\n' + \
64 one_cpu = 'processor : %d\n' % (i) + \
65 'vendor_id : Generic\n' + \
66 'cpu family : 0\n' + \
67 'model : 0\n' + \
68 'model name : Generic\n' + \
69 'stepping : 0\n' + \
70 'cpu MHz : %0.3d\n' \
71 % (toFrequency(options.cpu_clock)/mega) + \
72 'cache size: : %dK\n' \

--- 103 unchanged lines hidden ---
65 'vendor_id : Generic\n' + \
66 'cpu family : 0\n' + \
67 'model : 0\n' + \
68 'model name : Generic\n' + \
69 'stepping : 0\n' + \
70 'cpu MHz : %0.3d\n' \
71 % (toFrequency(options.cpu_clock)/mega) + \
72 'cache size: : %dK\n' \

--- 103 unchanged lines hidden ---