memtest-ruby.py (7938:685719afafe6) | memtest-ruby.py (8322:19949c6de823) |
---|---|
1# Copyright (c) 2006-2007 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; --- 73 unchanged lines hidden (view full) --- 82 83# system simulated 84system = System(cpu = cpus, 85 funcmem = PhysicalMemory(), 86 physmem = PhysicalMemory()) 87 88system.ruby = Ruby.create_system(options, system) 89 | 1# Copyright (c) 2006-2007 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; --- 73 unchanged lines hidden (view full) --- 82 83# system simulated 84system = System(cpu = cpus, 85 funcmem = PhysicalMemory(), 86 physmem = PhysicalMemory()) 87 88system.ruby = Ruby.create_system(options, system) 89 |
90assert(len(cpus) == len(system.ruby.cpu_ruby_ports)) | 90assert(len(cpus) == len(system.ruby._cpu_ruby_ports)) |
91 | 91 |
92for (i, ruby_port) in enumerate(system.ruby.cpu_ruby_ports): | 92for (i, ruby_port) in enumerate(system.ruby._cpu_ruby_ports): |
93 # 94 # Tie the cpu test and functional ports to the ruby cpu ports and 95 # physmem, respectively 96 # 97 cpus[i].test = ruby_port.port 98 cpus[i].functional = system.funcmem.port 99 100 # --- 14 unchanged lines hidden --- | 93 # 94 # Tie the cpu test and functional ports to the ruby cpu ports and 95 # physmem, respectively 96 # 97 cpus[i].test = ruby_port.port 98 cpus[i].functional = system.funcmem.port 99 100 # --- 14 unchanged lines hidden --- |