qemu-devel
[Top][All Lists]
Advanced

[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: Richard Henderson
Subject: Re: [PATCH 19/26] target/mips: Move helper_cache() to tcg/sysemu/special_helper.c
Date: Sun, 18 Apr 2021 12:52:58 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1

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


r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]