From: Stefan Weil <sw@weilnetz.de>
To: Meador Inge <meadori@codesourcery.com>
Cc: qemu-devel@nongnu.org, aurelien@aurel32.net
Subject: Re: [Qemu-devel] [PATCH] MIPS: Translate breaks and traps into the appropriate signal
Date: Thu, 10 Jan 2013 22:57:25 +0100 [thread overview]
Message-ID: <50EF3945.4090802@weilnetz.de> (raw)
In-Reply-To: <1357854407-7093-1-git-send-email-meadori@codesourcery.com>
Am 10.01.2013 22:46, schrieb Meador Inge:
> GCC and GAS are capable of generating traps or breaks to check for
> division by zero. Additionally, GAS is capable of generating traps
> or breaks to check for overflow on certain division and multiplication
> operations. The Linux kernel translates these traps and breaks into
> signals. This patch implements the corresponding feature in QEMU.
>
> Signed-off-by: Meador Inge <meadori@codesourcery.com>
> ---
> linux-user/main.c | 64 ++++++++++++++++++++++++++++++++++++++++++++++++++++-
> target-mips/cpu.h | 6 +++++
> 2 files changed, 69 insertions(+), 1 deletion(-)
>
>
Hi,
please check your patch before submitting it to qemu-devel.
See also http://wiki.qemu.org/Contribute/SubmitAPatch.
Regards,
Stefan W.
$ scripts/checkpatch.pl
0001-MIPS-Translate-breaks-and-traps-into-the-appropriate.patch
WARNING: braces {} are necessary for all arms of this statement
#62: FILE: linux-user/main.c:2329:
+ if (ret != 0)
[...]
WARNING: braces {} are necessary for all arms of this statement
#70: FILE: linux-user/main.c:2337:
+ if (code >= (1 << 10))
[...]
WARNING: braces {} are necessary for all arms of this statement
#73: FILE: linux-user/main.c:2340:
+ if (do_break(env, &info, code) != 0)
[...]
WARNING: braces {} are necessary for all arms of this statement
#83: FILE: linux-user/main.c:2350:
+ if (ret != 0)
[...]
WARNING: braces {} are necessary for all arms of this statement
#87: FILE: linux-user/main.c:2354:
+ if (!(trap_instr & 0xFC000000))
[...]
WARNING: braces {} are necessary for all arms of this statement
#90: FILE: linux-user/main.c:2357:
+ if (do_break(env, &info, code) != 0)
[...]
total: 0 errors, 6 warnings, 89 lines checked
0001-MIPS-Translate-breaks-and-traps-into-the-appropriate.patch has
style problems, please review. If any of these errors
are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
next prev parent reply other threads:[~2013-01-10 21:57 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-10 21:46 [Qemu-devel] [PATCH] MIPS: Translate breaks and traps into the appropriate signal Meador Inge
2013-01-10 21:57 ` Stefan Weil [this message]
2013-01-10 22:15 ` Meador Inge
2013-01-10 22:12 ` Peter Maydell
2013-01-10 22:27 ` Meador Inge
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=50EF3945.4090802@weilnetz.de \
--to=sw@weilnetz.de \
--cc=aurelien@aurel32.net \
--cc=meadori@codesourcery.com \
--cc=qemu-devel@nongnu.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.