On Tue, Oct 02, 2007 at 03:11:26PM +0100, Thiemo Seufer wrote:
> Maciej W. Rozycki wrote:
> > Dump the generated code for clear/copy page calls like it is done for TLB
> > fault handlers. Useful for debugging.
> >
> > Signed-off-by: Maciej W. Rozycki <macro@linux-mips.org>
> > ---
> > Thiemo,
> >
> > It was your change to add ".set noreorder", etc. to the TLB fault
> > handlers -- what is it needed for? I have thought gas does not try to
> > outsmart the user at the moment and does not reorder ".word" directives.
>
> It is not strictly needed, but it is a hint to the user that he looks
> at raw instructions.
I have a patch which makes the generated code accessible through a
procfs file. That can easily be converted back into a .o file and then
be disassembled. So it's now a question of which variant is preferable.
I don't mind - it's just that I've never been a friend of leaving much
debugging code or features around. 99% of the time it is just make the
code harder to read and maintain.
Ralf
|