[Libre-soc-bugs] [Bug 1073] Microwatt verilator sim - setting up chroot and documentation

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Thu Apr 27 23:22:19 BST 2023


https://bugs.libre-soc.org/show_bug.cgi?id=1073

--- Comment #5 from Jacob Lifshay <programmerjake at gmail.com> ---
(In reply to Jacob Lifshay from comment #4)
> (In reply to Luke Kenneth Casson Leighton from comment #3)
> > (In reply to Andrey Miroshnikov from comment #2)
> > 
> > > I would've thought that if the microwatt reset address is set to where the
> > > code is located, it should begin executing.
> > 
> > indeed - but if you've compiled it to be at a specific memory address,
> > and you "load" it into a different one, where do you think the PC will
> > go on the very first branch?
> 
> to the correct spot since nearly all branches are PC-relative? :P

generally embedded code needs to know which address it's at, so all the
non-pc-relative things work correctly

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the libre-soc-bugs mailing list