[Libre-soc-bugs] [Bug 982] Support PowerPC ABI in ISACaller
bugzilla-daemon at libre-soc.org
bugzilla-daemon at libre-soc.org
Sun Sep 17 23:27:43 BST 2023
https://bugs.libre-soc.org/show_bug.cgi?id=982
--- Comment #39 from Jacob Lifshay <programmerjake at gmail.com> ---
(In reply to Luke Kenneth Casson Leighton from comment #37)
> if going down this route (a new sim.mem that *actually* reads/writes
> to an actual area of malloc/mmao'd userspace memory) it will be
> necessary to allocate it at a fixed address of a fixed size.
a fixed address is not necessary, all we need is to allocate a memory block and
then add the base address of that block to all simulated memory operations. if
we bind the allocated block to a python buffer object, python will do that for
us, as well as bounds checking.
to implement emulated mmap, we can simply pick an unused address in that memory
block and use MAP_FIXED on that calculated address.
this is exactly what wasm does (with some extra stuff for sandboxing, like fast
bounds checking)
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the libre-soc-bugs
mailing list