Hi Steve,
Thanks very much for your help. I have now got it
working.
Regards-
Chaitali
--- Steve Reinhardt <[EMAIL PROTECTED]> wrote:
> The problem is that the interrupt controller's
> default for the cpu
> parameter is 'Parent.any', which means it grabs the
> nearest CPU it can
> find... which is fine for uniprocessors but
> ambiguous for
> multiprocessors. I fixed this in our tree a while
> ago (probably just
> after patch1 was released), so it will be in the
> next release. (Good
> news: Nate & Kevin are working on putting together a
> 2.0beta2 release
> that should come out any day now so that you can
> have all our bug fixes
> to date.)
>
> Meanwhile here's the patch:
>
> --- a/src/python/m5/objects/AlphaConsole.py
> 2006-11-14 12:16:49 -05:00
> +++ b/src/python/m5/objects/AlphaConsole.py
> 2006-11-14 12:16:49 -05:00
> @@ -4,7 +4,7 @@
>
> class AlphaConsole(BasicPioDevice):
> type = 'AlphaConsole'
> - cpu = Param.BaseCPU(Parent.any, "Processor")
> + cpu = Param.BaseCPU(Parent.cpu[0], "Processor")
> disk = Param.SimpleDisk("Simple Disk")
> sim_console = Param.SimConsole(Parent.any,
> "The Simulator Console")
> system = Param.AlphaSystem(Parent.any, "system
> object")
> diff -Nru a/src/python/m5/objects/IntrControl.py
> b/src/python/m5/objects/IntrControl.py
> --- a/src/python/m5/objects/IntrControl.py
> 2006-11-14 12:16:49 -05:00
> +++ b/src/python/m5/objects/IntrControl.py
> 2006-11-14 12:16:49 -05:00
> @@ -3,4 +3,4 @@
> from m5.proxy import *
> class IntrControl(SimObject):
> type = 'IntrControl'
> - cpu = Param.BaseCPU(Parent.any, "the cpu")
> + cpu = Param.BaseCPU(Parent.cpu[0], "the cpu")
>
>
> Lisa Hsu wrote:
> >
> >
> > On 11/13/06, *Chaitali Gupta*
> <[EMAIL PROTECTED]
> > <mailto:[EMAIL PROTECTED]>> wrote:
> >
> > Hi Lisa,
> >
> > As mentioned by you, I have read the webpage.
> I was
> > trying something like -
> >
> > "root = Root(clock = '1THz',
> > system = makeLinuxAlphaSystem(mem_mode,
> bm[0]))
> > root.system.cpu =
> > [AtomicSimpleCPU(),AtomicSimpleCPU()]
> > root.system.cpu[0] = cpu
> >
> >
> >
> > what is it that you were trying to do with the
> above assignment? did
> > you ever define cpu anywhere? you've already
> assigned
> > root.system.cpu[0] by doing the "root.system.cpu =
> [AtomicSimple....]".
> >
> > cpu.connectMemPorts(root.system.membus)
> > cpu.mem = root.system.physmem
> > root.system.cpu[1] = cpu2
> > cpu2.connectMemPorts(root.system.membus)
> > cpu2.mem = root.system.physmem "
> >
> > in fs.py file. But I am getting the following
> error -
> >
> >
> > "Error in unproxying param 'cpu' of
> system.intrctrl
> > Traceback (most recent call last):
> > File "<string>", line 1, in ?
> > File "build/ALPHA_FS/python/m5/main.py",
> line 314,
> > in main
> > execfile(sys.argv[0], scope)
> > File "configs/example/fs.py", line 86, in ?
> > m5.instantiate(root)
> > File "build/ALPHA_FS/python/m5/__init__.py",
> line
> > 87, in instantiate
> > root.print_ini()
> > File "build/ALPHA_FS/python/m5/config.py",
> line 517,
> > in print_ini
> > self._children[child].print_ini()
> > File "build/ALPHA_FS/python/m5/config.py",
> line 517,
> > in print_ini
> > self._children[child].print_ini()
> > File "build/ALPHA_FS/python/m5/config.py",
> line 505,
> > in print_ini
> > value = value.unproxy(self)
> > File "build/ALPHA_FS/python/m5/config.py",
> line 665,
> > in unproxy
> > result, done = self.find(obj)
> > File "build/ALPHA_FS/python/m5/config.py",
> line 748,
> > in find
> > return obj.find_any(self._pdesc.ptype)
> > File "build/ALPHA_FS/python/m5/config.py",
> line 466,
> > in find_any
> > raise AttributeError, \
> > AttributeError: parent.any matched more than
> one:
> > <bound method AtomicSimpleCPU.path of
> > <m5.objects.SimpleCPU.AtomicSimpleCPU object
> at
> > 0xb788520c>> <bound method
> AtomicSimpleCPU.path of
> > <m5.objects.SimpleCPU.AtomicSimpleCPU object
> at
> > 0xb78853ac>>"
> >
> >
> > Any help or suggestion is appreciated.
> > Thanks in advance.
> >
> > Regards-
> > Chaitali
> >
> >
> >
> >
> > Lisa Hsu <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
> >
> > > If all you want to do is have a machine
> with
> > > multiple CPUs, you can
> > > instantiate more in your python
> configuration
> > > script.
> > >
> > > on our wiki is some documentation
> explaining
> > > configuration scripts, you can
> > > literally just have your system's cpu
> parameter
> > > point to an array or cpu
> > > objects, and that's it.
> > >
> > >
> >
>
http://www.m5sim.org/wiki/index.php/Simulation_Scripts_Explained
> >
>
<http://www.m5sim.org/wiki/index.php/Simulation_Scripts_Explained>
> > >
> > > lisa
> > >
> > > On 11/11/06, Chaitali Gupta
> > > <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
> > > >
> > > > Hi Ali,
> > > >
> > > > I would let the linux scheduler do the
> scheduling
> > > for
> > > > my multithreaded program. But I want to
> know how
> > > to
> > > > specify/configure to make my program run
> on
> > > different
> > > > CPUs and CPUs having multiple cores.
> > > >
> > > > Thanks
> > > > Chaitali
> > > >
> > > > --- Ali Saidi <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
> > > >
> > > > > Chaitali,
> > > > >
> > > > > You need to compile the programs with
> the cross
> > > > > compiler. Depending
> > > > > on the programs this may be as simple
> as setting
>
=== message truncated ===
____________________________________________________________________________________
Sponsored Link
Compare mortgage rates for today.
Get up to 5 free quotes.
Www2.nextag.com
_______________________________________________
m5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/m5-users