[Libre-soc-bugs] [Bug 1173] provide an option to switch ISACaller to use a different Mem class that uses mmap.mmap instead of a dict
bugzilla-daemon at libre-soc.org
bugzilla-daemon at libre-soc.org
Sat Sep 23 02:45:58 BST 2023
https://bugs.libre-soc.org/show_bug.cgi?id=1173
Jacob Lifshay <programmerjake at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|CONFIRMED |IN_PROGRESS
--- Comment #2 from Jacob Lifshay <programmerjake at gmail.com> ---
I added a new MemMMap class.
I also added a method that the syscalls should use when they need direct access
to the memory (method not yet tested, I'll add that next):
class MemMMap:
def get_ctypes(self, start_addr, size, is_write):
""" returns a ctypes ubyte array referring to the memory at
`start_addr` with size `size`
"""
https://git.libre-soc.org/?p=openpower-isa.git;a=shortlog;h=9437aa56d550b9a66772068cf685b06e2d7d263f
commit 9437aa56d550b9a66772068cf685b06e2d7d263f
Author: Jacob Lifshay <programmerjake at gmail.com>
Date: Fri Sep 22 18:25:21 2023 -0700
switch UTF-8 validation tests to use MemMMap so it gets some testing
commit abdd57ce2d872a88465dc2d4c4726f29bc8e6bdd
Author: Jacob Lifshay <programmerjake at gmail.com>
Date: Fri Sep 22 18:23:22 2023 -0700
add MemMMap class
https://bugs.libre-soc.org/show_bug.cgi?id=1173
commit a8d7f5322d57395c14e42136f20caf3c78f5dc71
Author: Jacob Lifshay <programmerjake at gmail.com>
Date: Fri Sep 22 15:40:30 2023 -0700
split out most Mem methods into MemCommon base class
commit 2301b3d8a6d278ae9af7fb61c332e33d6f12d9bf
Author: Jacob Lifshay <programmerjake at gmail.com>
Date: Fri Sep 22 15:10:14 2023 -0700
format mem.py
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the libre-soc-bugs
mailing list