[Libre-soc-bugs] [Bug 982] Support PowerPC ABI in ISACaller
bugzilla-daemon at libre-soc.org
bugzilla-daemon at libre-soc.org
Mon Sep 18 18:17:58 BST 2023
https://bugs.libre-soc.org/show_bug.cgi?id=982
--- Comment #48 from Jacob Lifshay <programmerjake at gmail.com> ---
(In reply to Luke Kenneth Casson Leighton from comment #47)
> (In reply to Jacob Lifshay from comment #45)
>
> > so, if the statically linked binary's ELF headers says to load it with .data
> > at 0x40000, then the binary runs an insn to store to .data + 0x10, the
> > simulator will try to write to mem[0x40010], which python's __setitem__ will
> > translate to
> > *(mem.the_base_addr + 0x40010) = the_byte
>
> where is the money coming from to implement that?
the task we'll make when we want to support emulating mmap and/or loading ELF
binaries.
all we'd need is to change the Mem class to use that block from mmap.mmap
instead of a dict, looking through it, i could do it in a few hours. probably
less if nothing reaches into the Mem.mem dict and fiddles with it directly
instead of calling the load/store functions.
https://git.libre-soc.org/?p=openpower-isa.git;a=blob;f=src/openpower/decoder/isa/mem.py;h=41d5b0b4df11592f609dfc07c9da57234e8b5626;hb=180638ac02637f38301eb97d15a8590293b3a3a4#l52
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the libre-soc-bugs
mailing list