Re: simple serial device emulation

2021-09-11 Thread Hinko Kocevar
On Sat, 11 Sep 2021 at 17:24, Peter Maydell wrote: > On Fri, 10 Sept 2021 at 22:51, Philippe Mathieu-Daudé > wrote: > > > > On 9/10/21 9:35 PM, Hinko Kocevar wrote: > > > I have an emulated MMIO area holding couple of registers that deal with > > > serial UA

simple serial device emulation

2021-09-10 Thread Hinko Kocevar
I have an emulated MMIO area holding couple of registers that deal with serial UART. Very simple access to the Tx and Rx registers from the userspace point of view involves polling for a bit in one register and then writing another; when there is room for another character. When the guest app does

Re: Adding IO memory region to mipssim

2021-09-10 Thread Hinko Kocevar
Got it Phil, thank you very much! I need to educate myself on the subject of TLB and MMU for mips. //hinko On Fri, Sep 10, 2021 at 5:30 PM Philippe Mathieu-Daudé wrote: > On 9/10/21 3:21 PM, Hinko Kocevar wrote: > > I'm trying to add an I/O memory region to mipssim machine to emul

Adding IO memory region to mipssim

2021-09-10 Thread Hinko Kocevar
I'm trying to add an I/O memory region to mipssim machine to emulate a MMIO region used by the u-boot loaded as BIOS image. I can confirm that the machine starts and loads the BIOS, starts execution but hangs due to unhandled IO access as described below. The region should be at 0xB881, of siz