From: Peter Maydell <peter.maydell@linaro.org>
To: Christophe Lyon <christophe.lyon@st.com>
Cc: QEMU Developers <qemu-devel@nongnu.org>,
Christophe Lyon <christophe.lyon@linaro.org>
Subject: Re: [Qemu-devel] [ARM/FDPIC 4/4] linux-user: ARM-FDPIC: Add arm get tls syscall support
Date: Fri, 13 Apr 2018 16:03:30 +0100 [thread overview]
Message-ID: <CAFEAcA8MHx0cPhhNAj_HwgmDL0DG9koNSZ-6Ob17A8u2=girZA@mail.gmail.com> (raw)
In-Reply-To: <20180406151752.10854-5-christophe.lyon@st.com>
On 6 April 2018 at 16:17, Christophe Lyon <christophe.lyon@st.com> wrote:
> Co-Authored-By: Mickaël Guêné <mickael.guene@st.com>
> Signed-off-by: Christophe Lyon <christophe.lyon@st.com>
>
> diff --git a/linux-user/arm/target_syscall.h b/linux-user/arm/target_syscall.h
> index 94e2a42..afc0772 100644
> --- a/linux-user/arm/target_syscall.h
> +++ b/linux-user/arm/target_syscall.h
> @@ -16,6 +16,7 @@ struct target_pt_regs {
> #define ARM_NR_breakpoint (ARM_NR_BASE + 1)
> #define ARM_NR_cacheflush (ARM_NR_BASE + 2)
> #define ARM_NR_set_tls (ARM_NR_BASE + 5)
> +#define ARM_NR_get_tls (ARM_NR_BASE + 6)
>
> #define ARM_NR_semihosting 0x123456
> #define ARM_NR_thumb_semihosting 0xAB
> diff --git a/linux-user/main.c b/linux-user/main.c
> index 00810d6..1814578 100644
> --- a/linux-user/main.c
> +++ b/linux-user/main.c
> @@ -720,6 +720,9 @@ void cpu_loop(CPUARMState *env)
> case ARM_NR_breakpoint:
> env->regs[15] -= env->thumb ? 2 : 4;
> goto excp_debug;
> + case ARM_NR_get_tls:
> + env->regs[0] = cpu_get_tls(env);
> + break;
> default:
> gemu_log("qemu: Unsupported ARM syscall: 0x%x\n",
> n);
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
This is a bug fix unrelated to FDPIC, I think.
thanks
-- PMM
next prev parent reply other threads:[~2018-04-13 15:03 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-06 15:17 [Qemu-devel] [ARM/FDPIC 0/4] FDPIC ABI for ARM Christophe Lyon
2018-04-06 15:17 ` [Qemu-devel] [ARM/FDPIC 1/4] linux-user: ARM-FDPIC: Add configure option to support loading of FDPIC binaries Christophe Lyon
2018-04-13 15:04 ` Peter Maydell
2018-04-16 7:57 ` Christophe Lyon
2018-04-16 9:19 ` Peter Maydell
2018-04-06 15:17 ` [Qemu-devel] [ARM/FDPIC 2/4] linux-user: ARM-FDPIC: Add support of FDPIC for ARM Christophe Lyon
2018-04-13 15:07 ` Peter Maydell
2018-04-16 7:59 ` Christophe Lyon
2018-04-06 15:17 ` [Qemu-devel] [ARM/FDPIC 3/4] linux-user: ARM-FDPIC: Add support for signals for FDPIC targets Christophe Lyon
2018-04-13 15:14 ` Peter Maydell
2018-04-06 15:17 ` [Qemu-devel] [ARM/FDPIC 4/4] linux-user: ARM-FDPIC: Add arm get tls syscall support Christophe Lyon
2018-04-13 15:03 ` Peter Maydell [this message]
2018-04-16 7:49 ` Christophe Lyon
2018-04-13 15:18 ` [Qemu-devel] [ARM/FDPIC 0/4] FDPIC ABI for ARM Peter Maydell
2018-04-16 8:01 ` Christophe Lyon
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='CAFEAcA8MHx0cPhhNAj_HwgmDL0DG9koNSZ-6Ob17A8u2=girZA@mail.gmail.com' \
--to=peter.maydell@linaro.org \
--cc=christophe.lyon@linaro.org \
--cc=christophe.lyon@st.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).