[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 04:55:34 BST 2023
https://bugs.libre-soc.org/show_bug.cgi?id=1173
--- Comment #3 from Luke Kenneth Casson Leighton <lkcl at lkcl.net> ---
(In reply to Jacob Lifshay from comment #2)
> 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`
> """
awesome, makes sense
> 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
hmm hmmm about that, really it should be possible to set things
like MSR in order to flip LE/BE, and MSR.SF, on most unit tests.
needs a rethink as part of doing elwidth overrides to be honest
as the tests are the same but results are different. hmm hmmmm
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the libre-soc-bugs
mailing list