[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 19/26] target/mips: Move helper_cache() to tcg/sysemu/special
From: |
Philippe Mathieu-Daudé |
Subject: |
Re: [PATCH 19/26] target/mips: Move helper_cache() to tcg/sysemu/special_helper.c |
Date: |
Sun, 18 Apr 2021 22:20:42 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 |
On 4/18/21 9:52 PM, Richard Henderson wrote:
> On 4/18/21 9:31 AM, Philippe Mathieu-Daudé wrote:
>> Move helper_cache() to tcg/sysemu/special_helper.c.
>>
>> The CACHE opcode is privileged and is not accessible in user
>> emulation. However we get a link failure when restricting the
>> symbol to sysemu. For now, add a stub to satisfy linking, which
>> abort if ever called.
>>
>> Signed-off-by: Philippe Mathieu-Daudé<f4bug@amsat.org>
>> ---
>> target/mips/op_helper.c | 35 -------------------------
>> target/mips/tcg/sysemu/special_helper.c | 33 +++++++++++++++++++++++
>> target/mips/tcg/user/stubs.c | 29 ++++++++++++++++++++
>> target/mips/tcg/user/meson.build | 1 +
>> 4 files changed, 63 insertions(+), 35 deletions(-)
>> create mode 100644 target/mips/tcg/user/stubs.c
>
> You could add a different stub to translate.c instead. See
>
> https://lists.gnu.org/archive/html/qemu-devel/2021-02/msg08595.html
Great!
I think STUB_HELPER() belong to include/exec/helper-*.h.
Thanks,
Phil.
- [PATCH 15/26] target/mips: Restrict mmu_init() to TCG, (continued)
- [PATCH 15/26] target/mips: Restrict mmu_init() to TCG, Philippe Mathieu-Daudé, 2021/04/18
- [PATCH 16/26] target/mips: Move tlb_helper.c to tcg/sysemu/, Philippe Mathieu-Daudé, 2021/04/18
- [PATCH 17/26] target/mips: Restrict CPUMIPSTLBContext::map_address() handlers scope, Philippe Mathieu-Daudé, 2021/04/18
- [PATCH 18/26] target/mips: Move Special opcodes to tcg/sysemu/special_helper.c, Philippe Mathieu-Daudé, 2021/04/18
- [PATCH 19/26] target/mips: Move helper_cache() to tcg/sysemu/special_helper.c, Philippe Mathieu-Daudé, 2021/04/18
- [PATCH 20/26] target/mips: Move TLB management helpers to tcg/sysemu/tlb_helper.c, Philippe Mathieu-Daudé, 2021/04/18
- [PATCH 21/26] target/mips: Move exception management code to exception.c, Philippe Mathieu-Daudé, 2021/04/18
- [PATCH 23/26] target/mips: Move helper.h -> tcg/helper.h.inc, Philippe Mathieu-Daudé, 2021/04/18
- [PATCH 22/26] target/mips: Move CP0 helpers to sysemu/cp0.c, Philippe Mathieu-Daudé, 2021/04/18
- [PATCH 24/26] target/mips: Move TCG source files under tcg/ sub directory, Philippe Mathieu-Daudé, 2021/04/18