From: Sergey Fedorov <serge.fdrv@gmail.com>
To: Peter Maydell <peter.maydell@linaro.org>, qemu-devel@nongnu.org
Cc: qemu-arm@nongnu.org, patches@linaro.org
Subject: Re: [Qemu-arm] [Qemu-devel] [PATCH 2/3] target-arm: Fix IL bit reported for Thumb coprocessor traps
Date: Sat, 6 Feb 2016 21:24:27 +0300 [thread overview]
Message-ID: <56B63A5B.6020400@gmail.com> (raw)
In-Reply-To: <1454683067-16001-3-git-send-email-peter.maydell@linaro.org>
On 05.02.2016 17:37, Peter Maydell wrote:
> All Thumb coprocessor instructions are 32 bits, so the IL
> bit in the syndrome register should be set. Pass false to the
> syn_* function's is_16bit argument rather than s->thumb
> so we report the correct IL bit.
>
> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Sergey Fedorov <serge.fdrv@gmail.com>
> ---
> target-arm/translate.c | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/target-arm/translate.c b/target-arm/translate.c
> index 3ec758a..10792e8 100644
> --- a/target-arm/translate.c
> +++ b/target-arm/translate.c
> @@ -7184,19 +7184,19 @@ static int disas_coproc_insn(DisasContext *s, uint32_t insn)
> case 14:
> if (is64) {
> syndrome = syn_cp14_rrt_trap(1, 0xe, opc1, crm, rt, rt2,
> - isread, s->thumb);
> + isread, false);
> } else {
> syndrome = syn_cp14_rt_trap(1, 0xe, opc1, opc2, crn, crm,
> - rt, isread, s->thumb);
> + rt, isread, false);
> }
> break;
> case 15:
> if (is64) {
> syndrome = syn_cp15_rrt_trap(1, 0xe, opc1, crm, rt, rt2,
> - isread, s->thumb);
> + isread, false);
> } else {
> syndrome = syn_cp15_rt_trap(1, 0xe, opc1, opc2, crn, crm,
> - rt, isread, s->thumb);
> + rt, isread, false);
> }
> break;
> default:
WARNING: multiple messages have this Message-ID (diff)
From: Sergey Fedorov <serge.fdrv@gmail.com>
To: Peter Maydell <peter.maydell@linaro.org>, qemu-devel@nongnu.org
Cc: qemu-arm@nongnu.org, patches@linaro.org
Subject: Re: [Qemu-devel] [PATCH 2/3] target-arm: Fix IL bit reported for Thumb coprocessor traps
Date: Sat, 6 Feb 2016 21:24:27 +0300 [thread overview]
Message-ID: <56B63A5B.6020400@gmail.com> (raw)
In-Reply-To: <1454683067-16001-3-git-send-email-peter.maydell@linaro.org>
On 05.02.2016 17:37, Peter Maydell wrote:
> All Thumb coprocessor instructions are 32 bits, so the IL
> bit in the syndrome register should be set. Pass false to the
> syn_* function's is_16bit argument rather than s->thumb
> so we report the correct IL bit.
>
> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Sergey Fedorov <serge.fdrv@gmail.com>
> ---
> target-arm/translate.c | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/target-arm/translate.c b/target-arm/translate.c
> index 3ec758a..10792e8 100644
> --- a/target-arm/translate.c
> +++ b/target-arm/translate.c
> @@ -7184,19 +7184,19 @@ static int disas_coproc_insn(DisasContext *s, uint32_t insn)
> case 14:
> if (is64) {
> syndrome = syn_cp14_rrt_trap(1, 0xe, opc1, crm, rt, rt2,
> - isread, s->thumb);
> + isread, false);
> } else {
> syndrome = syn_cp14_rt_trap(1, 0xe, opc1, opc2, crn, crm,
> - rt, isread, s->thumb);
> + rt, isread, false);
> }
> break;
> case 15:
> if (is64) {
> syndrome = syn_cp15_rrt_trap(1, 0xe, opc1, crm, rt, rt2,
> - isread, s->thumb);
> + isread, false);
> } else {
> syndrome = syn_cp15_rt_trap(1, 0xe, opc1, opc2, crn, crm,
> - rt, isread, s->thumb);
> + rt, isread, false);
> }
> break;
> default:
next prev parent reply other threads:[~2016-02-06 18:24 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-05 14:37 [Qemu-arm] [PATCH 0/3] target-arm: Fix IL in syndromes for FP and copro traps Peter Maydell
2016-02-05 14:37 ` [Qemu-devel] " Peter Maydell
2016-02-05 14:37 ` [Qemu-arm] [PATCH 1/3] target-arm: Correct misleading 'is_thumb' syn_* parameter names Peter Maydell
2016-02-05 14:37 ` [Qemu-devel] " Peter Maydell
2016-02-06 18:25 ` [Qemu-arm] " Sergey Fedorov
2016-02-06 18:25 ` [Qemu-devel] " Sergey Fedorov
2016-02-05 14:37 ` [Qemu-devel] [PATCH 2/3] target-arm: Fix IL bit reported for Thumb coprocessor traps Peter Maydell
2016-02-06 18:24 ` Sergey Fedorov [this message]
2016-02-06 18:24 ` Sergey Fedorov
2016-02-05 14:37 ` [Qemu-devel] [PATCH 3/3] target-arm: Fix IL bit reported for Thumb VFP and Neon traps Peter Maydell
2016-02-06 18:25 ` [Qemu-arm] " Sergey Fedorov
2016-02-06 18:25 ` Sergey Fedorov
2016-02-08 13:17 ` [Qemu-devel] [Qemu-arm] [PATCH 0/3] target-arm: Fix IL in syndromes for FP and copro traps Peter Maydell
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=56B63A5B.6020400@gmail.com \
--to=serge.fdrv@gmail.com \
--cc=patches@linaro.org \
--cc=peter.maydell@linaro.org \
--cc=qemu-arm@nongnu.org \
--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.