[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v3 26/50] target/arm: call qemu_plugin_insn_appe
From: |
Richard Henderson |
Subject: |
Re: [Qemu-devel] [PATCH v3 26/50] target/arm: call qemu_plugin_insn_append |
Date: |
Mon, 17 Jun 2019 15:28:55 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 |
On 6/14/19 10:11 AM, Alex Bennée wrote:
> From: "Emilio G. Cota" <address@hidden>
>
> I considered using translator_ld* from arm_ldl_code
> et al. However, note that there's a helper that also calls
> arm_ldl_code, so we'd have to change that caller.
We should in fact change that caller.
Unfortunately, the SVC immediate copied into env->exception.syndrome is
truncated to 16 bits, which means that the aa32 0x123456 won't match.
However, it would be easy enough to create new EXCP_SWI_SEMIHOST, generate it
within translate*.c when the svc immediate matches. Everywhere except
check_for_semihosting(), we'd treat the two exceptions the same.
The BKPT instruction is only used for semihosting by thumb (and maybe only
v7m?). The exception syndrome does contain the entire 8-bit immediate, however
for consistency it might be convenient to create an EXCP_BKPT_SEMIHOST so that
all of the checks are always done at translation time.
r~
- Re: [Qemu-devel] [PATCH v3 17/50] atomic_template: add inline trace/plugin helpers, (continued)
- [Qemu-devel] [PATCH v3 40/50] linux-user: support -plugin option, Alex Bennée, 2019/06/14
- [Qemu-devel] [PATCH v3 32/50] target/alpha: fetch code with translator_ld, Alex Bennée, 2019/06/14
- [Qemu-devel] [PATCH v3 24/50] plugin-gen: add plugin_insn_append, Alex Bennée, 2019/06/14
- [Qemu-devel] [PATCH v3 29/50] target/i386: fetch code with translator_ld, Alex Bennée, 2019/06/14
- [Qemu-devel] [PATCH v3 26/50] target/arm: call qemu_plugin_insn_append, Alex Bennée, 2019/06/14
- Re: [Qemu-devel] [PATCH v3 26/50] target/arm: call qemu_plugin_insn_append,
Richard Henderson <=
- [Qemu-devel] [PATCH v3 16/50] atomic_template: fix indentation in GEN_ATOMIC_HELPER, Alex Bennée, 2019/06/14
- [Qemu-devel] [PATCH v3 39/50] vl: support -plugin option, Alex Bennée, 2019/06/14
- [Qemu-devel] [PATCH v3 38/50] plugin: add API symbols to qemu-plugins.symbols, Alex Bennée, 2019/06/14
- [Qemu-devel] [PATCH v3 47/50] accel/stubs: reduce headers from tcg-stub, Alex Bennée, 2019/06/14
- [Qemu-devel] [PATCH v3 30/50] target/hppa: fetch code with translator_ld, Alex Bennée, 2019/06/14
- [Qemu-devel] [PATCH v3 19/50] tcg: let plugins instrument memory accesses, Alex Bennée, 2019/06/14