From: Andrew Cagney <ac131313@cygnus.com>
To: Ben Elliston <bje@redhat.com>
Cc: cagney@redhat.com, cgd@broadcom.com, gdb-patches@sources.redhat.com
Subject: Re: [MIPS sim patch] sim_monitor cleanup
Date: Mon, 19 Feb 2001 11:12:00 -0000 [thread overview]
Message-ID: <3A916F98.FB189897@cygnus.com> (raw)
In-Reply-To: <14992.37492.971949.281244@scooby.cygnus.com>
Ben Elliston wrote:
>
> The following patch gives `sim_monitor' a return type of `int' and
> returns meaningful result codes that the caller can use to decide on
> appropriate error handling.
Almost. I'm fine with the theory just not the implementation. Reading:
! int reason = (instruction >> RSVD_INSTRUCTION_ARG_SHIFT) &
RSVD_INSTRUCTION_ARG_MASK;
! if (sim_monitor (SD, CPU, cia, reason))
! sim_io_error (sd, "TODO sim_monitor: reason = %d, pc =
0x%s\n", reason, pr_addr (cia));
just looks wierd.
Could sim_monitor() return zero or negative to indicate fail (both are
more common conventions) and perhaphs change ``TODO'' to something more
meanginful :-)
Andrew
next prev parent reply other threads:[~2001-02-19 11:12 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-02-18 19:27 Ben Elliston
2001-02-19 11:12 ` Andrew Cagney [this message]
2001-02-19 12:12 ` Ben Elliston
2001-02-19 13:17 ` Andrew Cagney
2001-02-19 14:37 ` Ben Elliston
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=3A916F98.FB189897@cygnus.com \
--to=ac131313@cygnus.com \
--cc=bje@redhat.com \
--cc=cagney@redhat.com \
--cc=cgd@broadcom.com \
--cc=gdb-patches@sources.redhat.com \
/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