* [Qemu-devel] Re: Qemu for MIPS
[not found] ` <1118171337.9861.8.camel@jma4.dev.netgem.com>
@ 2005-06-09 14:53 ` Ralf Baechle
0 siblings, 0 replies; 3+ messages in thread
From: Ralf Baechle @ 2005-06-09 14:53 UTC (permalink / raw)
To: Jocelyn Mayer; +Cc: qemu-devel
On Tue, Jun 07, 2005 at 09:08:57PM +0200, Jocelyn Mayer wrote:
> > Oh, I've created a small Qemu/MIPS page on the Linux/MIPS Wiki at
> > http://www.linux-mips.org/wiki/index.php/Qemu. It's a wiki so please feel
> > free to edit.
I've just put patches on that page.
> It would be great to publish them (or a link) on the qemu mailing list:
> <qemu-devel@nongnu.org>.
I've added qemu-devel on the cc list. I hope the list permits non-
subscriber postings.
> Then, more people may test and help for future development.
> Fabrice would be glad to see your code too, then I put him in CC.
Ralf
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Qemu-devel] Re: Qemu for MIPS
2005-06-13 10:59 [Qemu-devel] " Ralf Baechle
@ 2005-06-13 11:44 ` Dominic Sweetman
2005-06-13 12:56 ` Ralf Baechle
0 siblings, 1 reply; 3+ messages in thread
From: Dominic Sweetman @ 2005-06-13 11:44 UTC (permalink / raw)
To: Ralf Baechle; +Cc: linux-mips, Jocelyn Mayer, qemu-devel
Ralf Baechle (ralf@linux-mips.org) writes:
> I've posted updated Qemu patches on
>
> ftp://ftp.linux-mips.org/pub/linux/mips/qemu
> http://www.linux-mips.org/wiki/index.php/Qemu
>
> Enhancements over last week's patches:
>
> o The count/compare interrupt will now properly be delivered.
> o mfc0 will now return the proper value for the EXL and ERL flags
> o eret will now consider the value of ERL and EXL.
> o i8259 PIC is now properly cascaded to a CPU interrupt.
> o An ISA NE2000 card will now be emulated.
> o The CPU's random register now considers the value of the wired register
Great stuff...
> Known bugs:
>
> o ll/sc don't use a ll_bit like the real hardware thus right now any atomic
> functions aren't really atomic.
I suppose you know that the CPUs all implement "break link on
exception" by zeroing the link bit on an 'eret'? That doesn't sound
too hard...
> o ll/sc really should be watching a physical not a virtual address or they
> won't do much useful on any kind of shared memory structure.
> o MIPS documentation documents the lladdr register to contain the virtual
> address of the location being watched but about every implementation
> since the R4000 actually keeps the physical address there - and documents
> that as an erratum even though it actually the sensible thing to do. We
> should do the same. Fortunately nothing that I know of actually relies
> on the content of the lladdr register, so this one is cosmetic.
Arguably, an emulator should not provide the LLaddr register at all.
It's optional and "only available for debug" - and probably such
debugging is possible another way in an emulator. Robust software
shouldn't depend on assuming the contents make sense.
> ...
> Kernel panic - not syncing: No init found. Try passing init= option to kernel.
>
> Which is a bug - there is a valid root filesystem. Something for tomorrow.
Not quite there yet... but well done, again.
--
Dominic
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Qemu-devel] Re: Qemu for MIPS
2005-06-13 11:44 ` [Qemu-devel] " Dominic Sweetman
@ 2005-06-13 12:56 ` Ralf Baechle
0 siblings, 0 replies; 3+ messages in thread
From: Ralf Baechle @ 2005-06-13 12:56 UTC (permalink / raw)
To: Dominic Sweetman; +Cc: linux-mips, Jocelyn Mayer, qemu-devel
On Mon, Jun 13, 2005 at 12:44:09PM +0100, Dominic Sweetman wrote:
> > Known bugs:
> >
> > o ll/sc don't use a ll_bit like the real hardware thus right now any atomic
> > functions aren't really atomic.
>
> I suppose you know that the CPUs all implement "break link on
> exception" by zeroing the link bit on an 'eret'? That doesn't sound
> too hard...
It's not hard to add the llbit indeed - maybe I'm trying to hard to be
obscure use compatible. Generally Qemu is trading the highest accuracy
of emulation for speed ...
> Arguably, an emulator should not provide the LLaddr register at all.
> It's optional and "only available for debug" - and probably such
> debugging is possible another way in an emulator. Robust software
> shouldn't depend on assuming the contents make sense.
The only use I've seen for this register is having it being used as a
cp0 scratch register allowing to save the entire 31 GPRs. Very old
Linux/MIPS used to do that but it doesn't match the reality of MIPS ABIs,
so I gave up on that very soon. Like 11 years agp :)
> Not quite there yet... but well done, again.
Ralf
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-06-13 13:08 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20050315123233.GA6025@linux-mips.org>
[not found] ` <1110897633.28694.54.camel@rapid>
[not found] ` <20050315150046.GF6025@linux-mips.org>
[not found] ` <1111916818.31144.104.camel@rapid>
[not found] ` <20050327173933.GB28282@linux-mips.org>
[not found] ` <1112878757.28622.118.camel@rapid>
[not found] ` <20050607110430.GA4654@linux-mips.org>
[not found] ` <1118171337.9861.8.camel@jma4.dev.netgem.com>
2005-06-09 14:53 ` [Qemu-devel] Re: Qemu for MIPS Ralf Baechle
2005-06-13 10:59 [Qemu-devel] " Ralf Baechle
2005-06-13 11:44 ` [Qemu-devel] " Dominic Sweetman
2005-06-13 12:56 ` Ralf Baechle
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).