qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Richard Henderson <richard.henderson@linaro.org>
To: Weiwei Li <liweiwei@iscas.ac.cn>,
	qemu-riscv@nongnu.org, qemu-devel@nongnu.org
Cc: palmer@dabbelt.com, alistair.francis@wdc.com,
	bin.meng@windriver.com, dbarboza@ventanamicro.com,
	zhiwei_liu@linux.alibaba.com, wangjunqiang@iscas.ac.cn,
	lazyparser@gmail.com
Subject: Re: [PATCH v2 6/7] target/riscv: Enable PC-relative translation
Date: Tue, 23 May 2023 13:42:54 -0700	[thread overview]
Message-ID: <e19bb362-572e-25d1-013d-f53ff9e61e58@linaro.org> (raw)
In-Reply-To: <20230523135939.299246-7-liweiwei@iscas.ac.cn>

On 5/23/23 06:59, Weiwei Li wrote:
> Add a base pc_save for PC-relative translation(CF_PCREL).
> Diable the directly sync pc from tb by riscv_cpu_synchronize_from_tb.
> Use gen_pc_plus_diff to get the pc-relative address.
> Enable CF_PCREL in System mode.
> 
> Signed-off-by: Weiwei Li<liweiwei@iscas.ac.cn>
> Signed-off-by: Junqiang Wang<wangjunqiang@iscas.ac.cn>
> ---
>   target/riscv/cpu.c                        | 31 ++++++++++-----
>   target/riscv/insn_trans/trans_rvi.c.inc   | 12 +++++-
>   target/riscv/insn_trans/trans_rvzce.c.inc |  4 +-
>   target/riscv/translate.c                  | 47 +++++++++++++++++++----
>   4 files changed, 74 insertions(+), 20 deletions(-)

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

r~


  reply	other threads:[~2023-05-23 20:43 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-23 13:59 [PATCH v2 0/7] target/riscv: Add support for PC-relative translation Weiwei Li
2023-05-23 13:59 ` [PATCH v2 1/7] target/riscv: Fix target address to update badaddr Weiwei Li
2023-05-23 13:59 ` [PATCH v2 2/7] target/riscv: Introduce cur_insn_len into DisasContext Weiwei Li
2023-05-23 20:27   ` Richard Henderson
2023-05-26  2:02   ` Alistair Francis
2023-05-23 13:59 ` [PATCH v2 3/7] target/riscv: Change gen_goto_tb to work on displacements Weiwei Li
2023-05-23 20:29   ` Richard Henderson
2023-05-26  2:04   ` Alistair Francis
2023-05-23 13:59 ` [PATCH v2 4/7] target/riscv: Change gen_set_pc_imm to gen_update_pc Weiwei Li
2023-05-23 20:31   ` Richard Henderson
2023-05-26  2:21   ` Alistair Francis
2023-05-23 13:59 ` [PATCH v2 5/7] target/riscv: Use true diff for gen_pc_plus_diff Weiwei Li
2023-05-23 20:34   ` Richard Henderson
2023-05-26  2:23   ` Alistair Francis
2023-05-23 13:59 ` [PATCH v2 6/7] target/riscv: Enable PC-relative translation Weiwei Li
2023-05-23 20:42   ` Richard Henderson [this message]
2023-05-26  2:28   ` Alistair Francis
2023-05-23 13:59 ` [PATCH v2 7/7] target/riscv: Remove pc_succ_insn from DisasContext Weiwei Li
2023-05-23 20:43   ` Richard Henderson
2023-05-26  2:28   ` Alistair Francis
2023-05-26  3:38 ` [PATCH v2 0/7] target/riscv: Add support for PC-relative translation Alistair Francis

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=e19bb362-572e-25d1-013d-f53ff9e61e58@linaro.org \
    --to=richard.henderson@linaro.org \
    --cc=alistair.francis@wdc.com \
    --cc=bin.meng@windriver.com \
    --cc=dbarboza@ventanamicro.com \
    --cc=lazyparser@gmail.com \
    --cc=liweiwei@iscas.ac.cn \
    --cc=palmer@dabbelt.com \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-riscv@nongnu.org \
    --cc=wangjunqiang@iscas.ac.cn \
    --cc=zhiwei_liu@linux.alibaba.com \
    /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).