From: Nick Clifton <nickc@redhat.com>
To: Jens-Christian Lache <lache@tu-harburg.de>
Cc: gdb@sources.redhat.com
Subject: Re: [Fwd: a small bug in the arm simulator]
Date: Fri, 23 Feb 2001 11:06:00 -0000 [thread overview]
Message-ID: <p0wvah43t7.fsf@elmo.cygnus.com> (raw)
In-Reply-To: <3A9686D2.CEEB419D@redhat.com>
Hi Jens-Christian,
> Some time ago I have complained, that the arm simulator does not
> know software traps.
Well it does - but not perfectly.
The reason is that the arm simulator is *not* a full arm architecture
simulator. It is just an instruction level simulator. It is enough
to allow the simulation of ordinary programs (that do not do complex
I/O or make use of OS services) and the test programs for gcc, g++
etc.
If you need a fully fledged, cycle accurate, architecture accurate
simulator you should consider contacting ARM for their commercial
product, or ... fixing the GNU simulator so that it is architecture
accurate.
> - 0x201aa8c <interrupt_end_os_schedule_0+12>: orr r0, r0, #146
> - 0x201aa90 <interrupt_end_os_schedule_0+16>: msr CPSR_fc, r0
>
> The bug is located in 0x201aa90. It is not writing anything at all to
> the cpsr.
Are you using the latest sources from the CVS repository ? Quite a
few bug fixes have been applied to the simulator over the last few
months, so it is possible that this might have been fixed.
If it has not been fixed, then I would suggest you try debugging the
simulator. It is relatively straightforward. In this case I would
suggest that you look at the code in the file sim/arm/armsupp.c which
contains most of the routines for handling state changes.
Cheers
Nick
next parent reply other threads:[~2001-02-23 11:06 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <3A9686D2.CEEB419D@redhat.com>
2001-02-23 11:06 ` Nick Clifton [this message]
[not found] ` <0102232029510U.28931@lab04>
2001-02-23 11:38 ` Jens-Christian Lache
2001-02-23 12:15 ` Keith Seitz
2001-02-23 12:28 ` Jens-Christian Lache
2001-02-23 13:53 ` Jens-Christian Lache
[not found] ` <p0ae7d4280.fsf@elmo.cygnus.com>
2001-02-23 11:59 ` Jens-Christian Lache
2001-02-23 12:02 Jens-Christian Lache
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=p0wvah43t7.fsf@elmo.cygnus.com \
--to=nickc@redhat.com \
--cc=gdb@sources.redhat.com \
--cc=lache@tu-harburg.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox