Re: Microblaze libgloss and gdb simulator

Mike Frysinger <[email protected]>
Newsgroups gmane.comp.lib.newlib
Message-ID <YILiQ5S3iaZ892rg@vapier>
On 23 Apr 2021 07:48, Joel Sherrill wrote:
> On Fri, Apr 23, 2021 at 1:17 AM R. Diez <[email protected]> wrote:
> > > [...]
> > > Does anyone know how to build and run a hello world on the microblaze
> > > simulator in gdb using the microblaze-elf target and the code in
> > libgloss?
> >
> > Does it have to be the GDB simulator? QEMU seems to support the MicroBlaze
> > too.
> >
> > I am using QEMU to simulate a Cortex-M3 board, and writing to a particular
> > memory address where a UART is supposed to be outputs the byte on the host
> > console.
> >
> 
> No it doesn't. We use Qemu on at least arm, aarch64, x86, and sparc. Even
> though they tend to be just CPU simulators, the gdb simulators just tend to
> be
> easier to work with and can run a high percentage of RTEMS tests. When first
> starting a port, you are focused primarily on startup and context switches,
> and
> the gdb simulators work great for that. The devices are so simple, that the
> BSP
> is trivial.
> 
> For interrupt and real device support, you do have to move to something
> like qemu or real hardware. We likely will just have to move to it.

GNU sim can do these too ;), but i can see it being easier when most people
are contributing to QEMU already to make it just work.

newlib/libgloss missing bsp code wouldn't be addressed by sim selection
though :).
-mike
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.