qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Richard Henderson <richard.henderson@linaro.org>
To: Palmer Dabbelt <palmer@dabbelt.com>, anjo@rev.ng
Cc: qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [PATCH v3 17/27] target/riscv: Replace `tb_pc()` with `tb->pc`
Date: Mon, 27 Feb 2023 13:08:11 -1000	[thread overview]
Message-ID: <9e05f3ff-07f1-50f4-3069-0161a5c54404@linaro.org> (raw)
In-Reply-To: <mhng-4cd6d6c3-ac6c-40e7-ba7d-fe4b9761a395@palmer-ri-x1c9a>

On 2/27/23 13:05, Palmer Dabbelt wrote:
> On Mon, 27 Feb 2023 05:51:52 PST (-0800), anjo@rev.ng wrote:
>> Signed-off-by: Anton Johansson <anjo@rev.ng>
>> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
>> ---
>>  target/riscv/cpu.c | 7 +++++--
>>  1 file changed, 5 insertions(+), 2 deletions(-)
>>
>> diff --git a/target/riscv/cpu.c b/target/riscv/cpu.c
>> index 93b52b826c..9eb748a283 100644
>> --- a/target/riscv/cpu.c
>> +++ b/target/riscv/cpu.c
>> @@ -34,6 +34,7 @@
>>  #include "fpu/softfloat-helpers.h"
>>  #include "sysemu/kvm.h"
>>  #include "kvm_riscv.h"
>> +#include "tcg/tcg.h"
>>
>>  /* RISC-V CPU definitions */
>>
>> @@ -533,10 +534,12 @@ static void riscv_cpu_synchronize_from_tb(CPUState *cs,
>>      CPURISCVState *env = &cpu->env;
>>      RISCVMXL xl = FIELD_EX32(tb->flags, TB_FLAGS, XL);
>>
>> +    tcg_debug_assert(!(cs->tcg_cflags & CF_PCREL));
>> +
>>      if (xl == MXL_RV32) {
>> -        env->pc = (int32_t)tb_pc(tb);
>> +        env->pc = (int32_t) tb->pc;
>>      } else {
>> -        env->pc = tb_pc(tb);
>> +        env->pc = tb->pc;
>>      }
>>  }
> 
> Reviewed-by: Palmer Dabbelt <palmer@rivosinc.com>
> Acked-by: Palmer Dabbelt <palmer@rivosinc.com>
> 
> Thanks!  I'm going to assume you want these to stay together, but LMK if you were looking 
> to aim this at the RISC-V tree.

I've queued to tcg-next, so they'll stay together.
I've now added your r-b.


r~



  reply	other threads:[~2023-02-27 23:08 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-27 13:51 [PATCH v3 00/27] Replace TARGET_TB_PCREL with CF_PCREL Anton Johansson via
2023-02-27 13:51 ` [PATCH v3 01/27] include/exec: Introduce `CF_PCREL` Anton Johansson via
2023-02-27 13:51 ` [PATCH v3 02/27] target/i386: set `CF_PCREL` in `x86_cpu_realizefn` Anton Johansson via
2023-02-27 13:51 ` [PATCH v3 03/27] target/arm: set `CF_PCREL` in `arm_cpu_realizefn` Anton Johansson via
2023-02-27 13:51 ` [PATCH v3 04/27] accel/tcg: Replace `TARGET_TB_PCREL` with `CF_PCREL` Anton Johansson via
2023-02-27 13:51 ` [PATCH v3 05/27] include/exec: " Anton Johansson via
2023-02-27 13:51 ` [PATCH v3 06/27] target/arm: " Anton Johansson via
2023-02-27 13:51 ` [PATCH v3 07/27] target/i386: " Anton Johansson via
2023-02-27 13:51 ` [PATCH v3 08/27] include/exec: Remove `TARGET_TB_PCREL` define Anton Johansson via
2023-02-27 13:51 ` [PATCH v3 09/27] target/arm: " Anton Johansson via
2023-02-27 13:51 ` [PATCH v3 10/27] target/i386: " Anton Johansson via
2023-02-27 13:51 ` [PATCH v3 11/27] accel/tcg: Move jmp-cache `CF_PCREL` checks to caller Anton Johansson via
2023-02-27 13:51 ` [PATCH v3 12/27] accel/tcg: Replace `tb_pc()` with `tb->pc` Anton Johansson via
2023-02-27 13:51 ` [PATCH v3 13/27] target/tricore: " Anton Johansson via
2023-04-19  8:56   ` Bastian Koppelmann
2023-02-27 13:51 ` [PATCH v3 14/27] target/sparc: " Anton Johansson via
2023-02-27 13:51 ` [PATCH v3 15/27] target/sh4: " Anton Johansson via
2023-02-27 13:51 ` [PATCH v3 16/27] target/rx: " Anton Johansson via
2023-02-27 13:51 ` [PATCH v3 17/27] target/riscv: " Anton Johansson via
2023-02-27 23:05   ` Palmer Dabbelt
2023-02-27 23:08     ` Richard Henderson [this message]
2023-02-27 13:51 ` [PATCH v3 18/27] target/openrisc: " Anton Johansson via
2023-02-27 13:51 ` [PATCH v3 19/27] target/mips: " Anton Johansson via
2023-02-27 13:51 ` [PATCH v3 20/27] target/microblaze: " Anton Johansson via
2023-02-27 13:51 ` [PATCH v3 21/27] target/loongarch: " Anton Johansson via
2023-02-27 13:51 ` [PATCH v3 22/27] target/i386: " Anton Johansson via
2023-02-27 13:51 ` [PATCH v3 23/27] target/hppa: " Anton Johansson via
2023-02-27 13:51 ` [PATCH v3 24/27] target/hexagon: " Anton Johansson via
2023-02-27 17:24   ` Taylor Simpson
2023-02-27 13:52 ` [PATCH v3 25/27] target/avr: " Anton Johansson via
2023-02-27 13:52 ` [PATCH v3 26/27] target/arm: " Anton Johansson via
2023-02-27 13:52 ` [PATCH v3 27/27] include/exec: Remove `tb_pc()` Anton Johansson via
2023-02-27 19:52 ` [PATCH v3 00/27] Replace TARGET_TB_PCREL with CF_PCREL Richard Henderson

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=9e05f3ff-07f1-50f4-3069-0161a5c54404@linaro.org \
    --to=richard.henderson@linaro.org \
    --cc=anjo@rev.ng \
    --cc=palmer@dabbelt.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).