Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

commit dac8e00b862eb6d87cc88dddd1e5316c67c1d798 broke something #95

Open
LRGH opened this issue Mar 2, 2024 · 1 comment
Open

commit dac8e00b862eb6d87cc88dddd1e5316c67c1d798 broke something #95

LRGH opened this issue Mar 2, 2024 · 1 comment

Comments

@LRGH
Copy link
Contributor

LRGH commented Mar 2, 2024

It took me some time to extract from the non-regression tests of plasmasm a short example.

from amoco.cas.mapper import mapper
from amoco.arch.x64 import env
machine = mapper()
machine[env.mem(env.rsp,size=64)] = env.lab('toto',size=64)
machine.M(env.mem(env.rsp,32))

worked well before commit dac8e00 and now fails with the following error:

Traceback (most recent call last):
  File "(...)/amoco-machine-bug.py", line 5, in <module>
    machine.M(env.mem(env.rsp+16,32))
  File "(...)/amoco/amoco/cas/mapper.py", line 179, in M
    res = self._Mem_read(k.a, k.length, k.endian)
  File "(...)/amoco/amoco/cas/mapper.py", line 223, in _Mem_read
    elif p._is_ext and p._subrefs.get("mmio_r",None):
AttributeError: 'slc' object has no attribute '_subrefs'
@bdcht
Copy link
Owner

bdcht commented Mar 4, 2024

Fixed by cd95a61

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants