cornell-brg / pydgin

A (Py)thon (D)SL for (G)enerating (In)struction set simulators.
BSD 3-Clause "New" or "Revised" License
165 stars 29 forks source link

RegisterFile with constant_zero=True and constant_zero=False conflict for translation #18

Open ss2783 opened 9 years ago

ss2783 commented 9 years ago
[translation:info] Error:
[translation:info]    File "/Users/shreesha/vc/git-brg/pypy/rpython/translator/goal/translate.py", line 318, in main
[translation:info]     drv.proceed(goals)
[translation:info]    File "/Users/shreesha/vc/git-brg/pypy/rpython/translator/driver.py", line 541, in proceed
[translation:info]     return self._execute(goals, task_skip = self._maybe_skip())
[translation:info]    File "/Users/shreesha/vc/git-brg/pypy/rpython/translator/tool/taskengine.py", line 114, in _execute
[translation:info]     res = self._do(goal, taskcallable, *args, **kwds)
[translation:info]    File "/Users/shreesha/vc/git-brg/pypy/rpython/translator/driver.py", line 277, in _do
[translation:info]     res = func()
[translation:info]    File "/Users/shreesha/vc/git-brg/pypy/rpython/translator/driver.py", line 344, in task_rtype_lltype
[translation:info]     rtyper.specialize(dont_simplify_again=True)
[translation:info]    File "/Users/shreesha/vc/git-brg/pypy/rpython/rtyper/rtyper.py", line 176, in specialize
[translation:info]     self.specialize_more_blocks()
[translation:info]    File "/Users/shreesha/vc/git-brg/pypy/rpython/rtyper/rtyper.py", line 216, in specialize_more_blocks
[translation:info]     self.specialize_block(block)
[translation:info]    File "/Users/shreesha/vc/git-brg/pypy/rpython/rtyper/rtyper.py", line 303, in specialize_block
[translation:info]     hop.setup()  # this is called from here to catch TyperErrors...
[translation:info]    File "/Users/shreesha/vc/git-brg/pypy/rpython/rtyper/rtyper.py", line 627, in setup
[translation:info]     rtyper.call_all_setups()  # compute ForwardReferences now
[translation:info]    File "/Users/shreesha/vc/git-brg/pypy/rpython/rtyper/rtyper.py", line 246, in call_all_setups
[translation:info]     r.setup()
[translation:info]    File "/Users/shreesha/vc/git-brg/pypy/rpython/rtyper/rmodel.py", line 55, in setup
[translation:info]     self._setup_repr()
[translation:info]    File "/Users/shreesha/vc/git-brg/pypy/rpython/rtyper/rclass.py", line 489, in _setup_repr
[translation:info]     r = self.rtyper.getrepr(attrdef.s_value)
[translation:info]    File "/Users/shreesha/vc/git-brg/pypy/rpython/rtyper/rtyper.py", line 146, in getrepr
[translation:info]     result = s_obj.rtyper_makerepr(self)
[translation:info]    File "/Users/shreesha/vc/git-brg/pypy/rpython/rtyper/rpbc.py", line 49, in rtyper_makerepr
[translation:info]     return getRepr(rtyper, self)
[translation:info]    File "/Users/shreesha/vc/git-brg/pypy/rpython/rtyper/rpbc.py", line 803, in __init__
[translation:info]     mdescs,))
[translation:ERROR] TyperError: cannot find a unique name under which the methods can be found: [<MethodDesc '_set_item' of <ClassDef 'pydgin.storage.RegisterFile'> bound to <ClassDef 'pydgin.storage.RegisterFile'> {}>, <MethodDesc '_set_item_const_zero' of <ClassDef 'pydgin.storage.RegisterFile'> bound to <ClassDef 'pydgin.storage.RegisterFile'> {}>]
[translation:ERROR] .. (pydgin.sim:193)entry_point
[translation:ERROR] .. block@15 with 1 exits
[translation:ERROR] .. v6 = getattr((<parc-sim.ParcSim obje...77d210>), ('jitdriver'))