Re: Testing a microcontroller emulation by loading the binary on incomplete Flash emulation

2021-08-29 Thread Philippe Mathieu-Daudé
Le dim. 29 août 2021 23:34, Gautam Bhat a écrit : > > Just create a minimal machine with some RAM in it, and use > > the generic-loader to load the test binary into the RAM, then. > > > > -- PMM > > I should be using the -bios switch for loading the bare metal firmware, > correct? > No:

Re: Testing a microcontroller emulation by loading the binary on incomplete Flash emulation

2021-08-29 Thread Gautam Bhat
> Just create a minimal machine with some RAM in it, and use > the generic-loader to load the test binary into the RAM, then. > > -- PMM I should be using the -bios switch for loading the bare metal firmware, correct? -Gautam.

Re: Testing a microcontroller emulation by loading the binary on incomplete Flash emulation

2021-08-26 Thread Peter Maydell
On Thu, 26 Aug 2021 at 16:46, Gautam Bhat wrote: > > On Thu, Aug 26, 2021 at 1:24 AM Peter Maydell > wrote: > > > > On Wed, 25 Aug 2021 at 20:03, Gautam Bhat wrote: > > > > If you're > > doing this specifically because you want to look at how a > > target frontend for a new architecture works,

Re: Testing a microcontroller emulation by loading the binary on incomplete Flash emulation

2021-08-26 Thread Gautam Bhat
On Thu, Aug 26, 2021 at 1:24 AM Peter Maydell wrote: > > On Wed, 25 Aug 2021 at 20:03, Gautam Bhat wrote: > > If you're > doing this specifically because you want to look at how a > target frontend for a new architecture works, have fun, I guess. > > thanks > -- PMM Exactly what I want to do.

Re: Testing a microcontroller emulation by loading the binary on incomplete Flash emulation

2021-08-25 Thread Peter Maydell
On Wed, 25 Aug 2021 at 20:03, Gautam Bhat wrote: > I am trying to emulate the TI MSP430 microcontroller. The MSP430 is a custom 16-bit architecture. We don't have an emulation of that kind of CPU. If you're mostly doing this to look at how QEMU's device emulation is implemented, you should

Re: Testing a microcontroller emulation by loading the binary on incomplete Flash emulation

2021-08-25 Thread Gautam Bhat
On Tue, Aug 24, 2021 at 1:52 PM Philippe Mathieu-Daudé wrote: > > > Aren't Nascent uC based on 8051? Because AFAIK QEMU doesn't emulate > this architecture. I am trying to emulate the TI MSP430 microcontroller. -Gautam.

Re: Testing a microcontroller emulation by loading the binary on incomplete Flash emulation

2021-08-24 Thread Philippe Mathieu-Daudé
On Tue, Aug 24, 2021 at 11:19 AM Peter Maydell wrote: > On Tue, 24 Aug 2021 at 09:22, Philippe Mathieu-Daudé wrote: > > On 8/23/21 9:46 PM, Gautam Bhat wrote: > > > On Sun, Aug 22, 2021 at 10:18 PM Peter Maydell > > > wrote: > > >> On Sun, 22 Aug 2021 at 15:37, Gautam Bhat wrote: > > >>> > >

Re: Testing a microcontroller emulation by loading the binary on incomplete Flash emulation

2021-08-24 Thread Peter Maydell
On Tue, 24 Aug 2021 at 09:22, Philippe Mathieu-Daudé wrote: > > On 8/23/21 9:46 PM, Gautam Bhat wrote: > > On Sun, Aug 22, 2021 at 10:18 PM Peter Maydell > > wrote: > >> On Sun, 22 Aug 2021 at 15:37, Gautam Bhat wrote: > >>> > >>> Hi, > >>> > >>> I am to implement a very simple microcontroller

Re: Testing a microcontroller emulation by loading the binary on incomplete Flash emulation

2021-08-24 Thread Philippe Mathieu-Daudé
On 8/23/21 9:46 PM, Gautam Bhat wrote: > On Sun, Aug 22, 2021 at 10:18 PM Peter Maydell > wrote: >> On Sun, 22 Aug 2021 at 15:37, Gautam Bhat wrote: >>> >>> Hi, >>> >>> I am to implement a very simple microcontroller for my understanding >>> of Qemu development. This microcontroller runs its

Re: Testing a microcontroller emulation by loading the binary on incomplete Flash emulation

2021-08-23 Thread Gautam Bhat
On Sun, Aug 22, 2021 at 10:18 PM Peter Maydell wrote: > > On Sun, 22 Aug 2021 at 15:37, Gautam Bhat wrote: > > > > Hi, > > > > I am to implement a very simple microcontroller for my understanding > > of Qemu development. This microcontroller runs its code from > > programmable flash which is

Re: Testing a microcontroller emulation by loading the binary on incomplete Flash emulation

2021-08-22 Thread Peter Maydell
On Sun, 22 Aug 2021 at 15:37, Gautam Bhat wrote: > > Hi, > > I am to implement a very simple microcontroller for my understanding > of Qemu development. This microcontroller runs its code from > programmable flash which is bit-, byte- and word addressable. To do > some initial tests of my nascent